04-07-2006 10:03 AM
04-07-2006 12:31 PM
04-07-2006 03:36 PM
Hello Khalid,
The application is pretty simple.
I am reading a tag from a AB Controllogix PLC.
Lookout is seeing it as a 16 bit signed Integer.
The tag has each bit assigned to a Photoeye or e-stop and I want to monitor each bit to see of it is true.
It can be simulated using a Pot and ModbusSlave.
I tried the "S" regsitered but did not see a value in the ModbusSlave1.H40002.fx.
Should I use another connection?
Dswift
04-07-2006 05:09 PM
Hello Dswift,
It seems to work for me (with one small bug): I used the S40001 in the ModbusSlave and wrote -3 to it. When displayed on the panel, S40001 gives me a 65533 (which is technically correct because that's what really gets stored in the register 40001); but Lookout should interpret this as a signed number and display a -3 (this is the small bug).
Nevertheless, when I pull the individual bits off of this using the H40001.f1 thru' H40001.f16, I do get the right bits, i.e., 1111111111111101. Which again can represent either 65533 or -3 (two's complement of +3 using 16 bits), depending on how we interpret it.
So, I am wondering what issue you are experiencing. Perhaps the LSB and MSB are switched in the AB tag? In which case you would interpret the bits in reverse order.
I hope I haven't misunderstood your question.
-Khalid