Hi,
i tried the modbus example to read out some LM data to my PLC.
connection on TCP is fine and i don't get scanning errors when i use qmodmaster
but all values remain 0
only things i changed are this:
1/1/2 is just a 1 bit boolean set to 1
i also changed the ip because i got an error "illegal data adress" on my qmodmaster when scanning.
do i need to change other things to get this to work ?
thx
for some reason i tried to inactivate and activate the script and the value came up.
is this normal ? do i have to reactivate the script everytime i make changes ?
i tried the modbus example to read out some LM data to my PLC.
connection on TCP is fine and i don't get scanning errors when i use qmodmaster
but all values remain 0
only things i changed are this:
Code:
-- list of coil mapping, starting from 0
coils = { '1/1/2' }
-- list of register mapping, starting from 0
registers = { '1/1/1' }
-- list of register data types, element count must match registers table
regdt = { dt.uint16 }
1/1/2 is just a 1 bit boolean set to 1
i also changed the ip because i got an error "illegal data adress" on my qmodmaster when scanning.
do i need to change other things to get this to work ?
thx
for some reason i tried to inactivate and activate the script and the value came up.
is this normal ? do i have to reactivate the script everytime i make changes ?