This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus TCP slave example
#16
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:
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 ?


Messages In This Thread
Modbus TCP slave example - by admin - 08.01.2016, 08:46
RE: Modbus TCP slave example - by Deniss - 15.01.2016, 08:58
RE: Modbus TCP slave example - by admin - 15.01.2016, 14:39
RE: Modbus TCP slave example - by admin - 18.01.2016, 12:57
RE: Modbus TCP slave example - by automatikas - 02.02.2017, 11:30
RE: Modbus TCP slave example - by admin - 02.02.2017, 12:09
RE: Modbus TCP slave example - by automatikas - 02.02.2017, 13:35
RE: Modbus TCP slave example - by automatikas - 29.03.2017, 10:26
RE: Modbus TCP slave example - by admin - 29.03.2017, 10:37
RE: Modbus TCP slave example - by leondias - 29.03.2017, 10:40
RE: Modbus TCP slave example - by automatikas - 29.03.2017, 10:41
RE: Modbus TCP slave example - by admin - 29.03.2017, 10:55
RE: Modbus TCP slave example - by automatikas - 29.03.2017, 11:15
RE: Modbus TCP slave example - by Deniss - 20.04.2017, 06:47
RE: Modbus TCP slave example - by admin - 20.04.2017, 15:38
RE: Modbus TCP slave example - by duvelken - 02.12.2017, 08:13
RE: Modbus TCP slave example - by admin - 03.12.2017, 09:58
RE: Modbus TCP slave example - by FatMax - 13.12.2018, 14:44
RE: Modbus TCP slave example - by admin - 13.12.2018, 15:23
RE: Modbus TCP slave example - by FatMax - 13.12.2018, 15:53
RE: Modbus TCP slave example - by rw_echo - 16.03.2023, 07:57
RE: Modbus TCP slave example - by admin - 17.03.2023, 10:52

Forum Jump: