Data transfer to the PLC
7.2 Control program example
3WL/3VL circuit breakers with communication capability - PROFIBUS
158
System Manual, 03/2011, A5E01051353-02
Step 2 Assignment with parameters (example: data set 94 'Current measured values')
All parameters must be set customer-specifically.
Note
Help via "F1" when the cursor is in the line "CALL RD_REC"
Network 6
Read data set 94 "Current measured values"
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
Note
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)
However, this data block must first be generated!
The precise structure of the data sets is included in Chapter Data library (Page 175)