7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
A-195
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
Case a: Sequence with older CP types
The send job is executed as soon as the parameter ACT = 1 is passed.
Following this, the parameter ACT = 0 must be passed in at least one further
call.
The status code in the output parameters DONE, ERROR and STATUS is
updated in each block call and can be evaluated. To update the status code
without starting a new send job, start a new block call with the parameter ACT =
0.
Refer to the sample program at the end of Section 7.3.1.
User program
(CPU cycle)
Ethernet CP Communications Partner
AG_SEND
Job active
1)
Job completed without error
1)
AG_SEND
Supply AG_SEND with
data “X”
ACT = 1
Transfer
“X”
active over
Ethernet
Legend:
1)
Parameter transfer DONE, ERROR, STATUS
Time Time Time
Supply AG_SEND
ACT = 0
AG_SEND
Job active
1)
FC5 AG_SEND / FC50 AG_LSEND - continued