Blocks MODBUS Slave
Contents
Back to Libraries
Slave MODE
MODBUS_GET_COIL
Reads the appropriate COIL value from the internal modbus table of values.
in | OfsAdr | word | register address (1-9999) | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table | |
out | Q | bool | return value | |
out | R_TRIG | bool | for future use - not implemented | |
out | W_TRIG | bool | for future use - not implemented |
Example: Modbus Master device or software controls 'led_usr1_red' on the IPLOG.
MODBUS_GET_DISCRETE
Reads the appropriate DISCRETE value from the internal modbus table of values.
in | OfsAdr | word | register address (1-9999) | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table | |
out | Q | bool | return value | |
out | R_TRIG | bool | for future use - not implemented | |
out | W_TRIG | bool | for future use - not implemented |
MODBUS_GET_HOLDING
Reads the appropriate HOLDING register value from the internal modbus table of values.
in | OfsAdr | word | register address (1-9999) | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table | |
out | Q | word | return value | |
out | R_TRIG | bool | for future use - not implemented | |
out | W_TRIG | bool | for future use - not implemented |
MODBUS_GET_INPUT
Reads the appropriate INPUT register value from the internal modbus table of values.
in | OfsAdr | word | register address (1-9999) | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table | |
out | Q | word | return value | |
out | R_TRIG | bool | for future use - not implemented | |
out | W_TRIG | bool | for future use - not implemented |
MODBUS_SET_COIL
Writes the appropriate COIL value to the internal modbus table of values.
in | OfsAdr | word | register address (1-9999) | |
in | VAL | bool | value to write | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table |
MODBUS_SET_DISCRETE
Writes the appropriate DISCRETE value to the internal modbus table of values.
in | OfsAdr | word | register address (1-9999) | |
in | VAL | bool | value to write | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table |
MODBUS_SET_HOLDING
Writes the appropriate HOLDING register value to the internal modbus table of values.
in | OfsAdr | word | register address (1-9999) | |
in | VAL | word | value to write | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table |
MODBUS_SET_INPUT
Writes the appropriate INPUT register value to the internal modbus table of values.
in | OfsAdr | word | register address (1-9999) | |
in | VAL | word | value to write | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table |
Example: Value from "resin1" is saved in register 2 of Input register.
MODBUS_TCP_SLAVE
This function block starts listening TCP MODBUS slave deamon on the appropriate port.
in | Port | int | Listening TCP port (default: 502) | |
in | UnitID | byte | device bus address (1-247) (default: 1) | |
out | ERR | bool | F = No error, T = occur any error | |
out | ERR_ID | word | Error ID - see Error table |