Support Forums
Troubleshooting E122 - Command Incompatible with Configured Port Function

Hi,

I am trying to configure a sensor to record data using a DT82I.

I have the sensor connected to the green serial connector on the front of the logger. The sensor communicates using MODBUS.

I am attempting to use the following code to log the temperature data from the sensor as 1CV:

1MODBUS(AD1,R4:15,MBF,=1CV)

I keep getting an error code "E122 - Command incompatible with configured port function at column 28 [ ,MBF,=1CV)<err> ]"

I currently have the port configured with the following settings (based off reccomendations from the sensor manufacturer):

BPS = 19200
DATA_BITS = 8
STOP_BITS = 2
PARITY = NONE
FLOW = NONE
MODE = RS485
FUNCTION = MODBUS

I tried switching the function from MODBUS to SERIAL but get the same error message.

This is the first time using a DT82I logger and I am not too familiar with the language. Anyone happen to have an idea on what I am doing wrong here?

Thanks!
Stevemo

Hi, I am trying to configure a sensor to record data using a DT82I. I have the sensor connected to the green serial connector on the front of the logger. The sensor communicates using MODBUS. I am attempting to use the following code to log the temperature data from the sensor as 1CV: 1MODBUS(AD1,R4:15,MBF,=1CV) I keep getting an error code &quot;E122 - Command incompatible with configured port function at column 28 [ ,MBF,=1CV)&lt;err&gt; ]&quot; I currently have the port configured with the following settings (based off reccomendations from the sensor manufacturer): BPS = 19200 DATA_BITS = 8 STOP_BITS = 2 PARITY = NONE FLOW = NONE MODE = RS485 FUNCTION = MODBUS I tried switching the function from MODBUS to SERIAL but get the same error message. This is the first time using a DT82I logger and I am not too familiar with the language. Anyone happen to have an idea on what I am doing wrong here? Thanks! Stevemo

Hi stevemo,

Please set the port function to MODBUS_MASTER:
BPS = 19200
DATA_BITS = 8
STOP_BITS = 2
PARITY = NONE
FLOW = NONE
MODE = RS485
FUNCTION = MODBUS_MASTER

MODBUS only setting indicates you want the logger to act as MODBUS Slave, useful for integration with PLC but not for reading the MODBUS sensor.

Best regards,
Rudy Gunawan

Hi stevemo, Please set the port function to MODBUS_MASTER: BPS = 19200 DATA_BITS = 8 STOP_BITS = 2 PARITY = NONE FLOW = NONE MODE = RS485 FUNCTION = **MODBUS_MASTER** MODBUS only setting indicates you want the logger to act as MODBUS Slave, useful for integration with PLC but not for reading the MODBUS sensor. Best regards, Rudy Gunawan
90
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft