3/5/2008 12:35 AM | |
Posts: 15 Rating:
|
I have a problem for read data from COM15 (Sentron), with SFC 59. I have configured five COM15 in HW config. First COM15: Address DP : 6 y Diagnostic address: 8189, Address Input Start from HW Config: 256 DEC (100 HEX) Second COM15: Address DP : 8 y Diagnostic address: 8188, Address Input Start from HW Config: 300 DEC (12C HEX) Third COM15: Address DP : 10 y Diagnostic address: 8187, Address Input Start from HW Config: 38 DEC (26 HEX) Fourth COM15: Address DP : 16 y Diagnostic address: 8186, Address Input Start from HW Config: 388 DEC (184 HEX) Fifth COM15: Address DP : 18 y Diagnostic address: 8185, Address Input Start from HW Config: 432 DEC (1B0 HEX) I attempt to use SFC 59 to read the DS_94 data (Current metering values (Length 197 Byte, read only) part 1), but only I can read a COM15 with address 100 (HEX). When I want to readCOM15 with address 12C (HEX), 26 (hex), 184 (HEX) and 1B0 (HEX), appears error RET_VAL = 8090 = Specified logical base address invalid: There is no assignment in SDB1/SDB2x or there is no base address. In example LADDR =300 inDEC. W#16#12C in HEX. Example of FC20: CALL SFC 59 //Read data record REQ :=M10.0 IOID :=B#16#54 //Identified for “inputs” LADDR :=W#16#12C //Log. base address //from HW Config RECNUM :=B#16#5E //DS 94 RET_VAL:=MW11 BUSY :=M10.1 RECORD :=P#DB200.DBX 0.0 BYTE 200 //DB200, bytes 0-240 How I can read the data from HW Config 12C (HEX), 26 (hex), 184 (HEX) and 1B0 (HEX)? Because I have error 8059. I attachment several picture from HW Config y FC20 Thanks AttachmentHW Config y FC20.zip (802 Downloads) |
3/6/2008 7:03 AM | |
Posts: 2348 Rating:
|
With SFC59 you can read data of module in rack. For DP-slave you need SFC13. |
5/12/2009 4:52 PM | |
Posts: 15 Rating:
|
Thank you chibby0ne for your answer, |
5/12/2009 5:16 PM | |
Posts: 8 Rating:
|
But you had to modify the logical adress too right? Andwhat PLC where you using before? |
5/12/2009 5:30 PM | |
Posts: 15 Rating:
|
No, I can put any address. |
Follow us on