10/12/2012 3:23 PM | |
Joined: 10/17/2011 Last visit: 7/19/2022 Posts: 148 Rating:
|
Dear Sir, thank you for your reply. I am using one 1SI module as a RS485 Modbus Master and another 1SI module as a modbus slave. I want to read flag from m18.0 to M19.7 ie 16 bits in DB42(SEND source DB) slave_addr=1 function code=1 start addr=w#16#40(64 decimal) no. of bits=16 IN DB80(Conversion DB) DB80.DBW0(aaaaa)=0 DB80.DBW2(bbbbb)=C8 (Decimal=200) DB80.DBW4(uuuuu)=A (Decimal=10) flag byte=[(start addr- aaaaa)/8]+uuuuu =[(64-0)/8]+10 =18 remaining flag bits=[(start adrr-aaaaa)%8] =64%8 =0 therefore flags M18.0 to M19.7 Should be accessed. But when I give request at send, on Tx at Master module and Rx at slave module , blinks. I am getting error_Nr= 16#5e ERROR_INFO= 16#831 Please suggest where it is going wrong? I am attaching the backup copy. Please go through it. Waiting for your reply. Warm regards, Damayanti Bhapkar Attachment1_support.zip (191 Downloads) |
12/10/2012 9:59 AM | |
Posts: 1 Rating:
|
Hello Damayanti, Facing the same problem. Did you get this worked out? I get ERROR_NR = W#16#005E and ERROR_INFO = W#16#0811 Tx, Fredi |
12/10/2012 11:37 AM | |
Joined: 10/17/2011 Last visit: 7/19/2022 Posts: 148 Rating:
|
Dear FrediO, please find the program for writing the flags. Damayanti
Attachment1SI_write_flags.zip (209 Downloads) |
This contribution was helpful to
1 thankful Users |
3/11/2015 3:29 PM | |
Joined: 9/3/2014 Last visit: 3/13/2019 Posts: 4766 Rating:
|
|
Follow us on