(0)| 10/16/2009 9:32 PM | |
|
Posts: 1742 Rating:
|
Hello, Firts of all, you have already a lot of information available via type 3 in the cyclic information. Access to thne cyclic data is just via periphery access. But you can read more via data set readings. Here an example, reading dataset 94, Fetching the current measured values from data set 94 "Current measured values" "CALL RD_REC" REQ :=M 70.0 //Triggered by program sequence IOID :=B#16#54 //ID area inputs LADDR :=W#16#100 //Hardware configuration "I address" in HEX RECNUM :=B#16#5E //Data set number "94" in HEX RET_VAL:=MW 72 //Acknowledgment SFC59 BUSY :=M 71.0 //Acknowledgment Read still active RECORD :=P#DB10.DBX 0.0 BYTE 197
P#DB10.DBX 0.0 BYTE 197 represents a pointer for storing the read data P# = ID pointer DB10 = data block to be used DBX0.0 = offset (here, 0 bytes) BYTE = ID for repetition factor type 197 = repetition factor (data set length → 197 bytes) |
This contribution was helpful to
|
|
| 6/17/2013 9:51 PM | |
|
Joined: 9/27/2006 Last visit: 12/27/2025 Posts: 12474 Rating:
|
Hello mencaulong; Whenever you have need of inormation on a SFCxx or SFBxx, you have 2 good sources of information: - the Step 7 online help ( with key F1); - this manual: System Software for S7-300/400 System and Standard Functions Volume 1 and Volume 2 The attached document is taken from this last manual, and explains the B#16#54 valuefor the IOID parameter of SFC 59. Hope this helps, Daniel Chartier |
Follow us on