Process interfacing via an automation system (PLC, PC)
10.4 Control with FB79
SIMATIC MV420 / SIMATIC MV440
288 Operating Instructions, 04/2013, A5E02371045-06
Sequence when saving a program (COMMAND = W#16#0002)
To allow the FB to trigger the saving of a code, the parameter Connections > Integration >
Control must have the value "PROFINET IO".
The job can only be sent when the reader is not in the ERROR status (see also the status
table following the parameter table).
When the job is triggered, the parameters DONE and ERROR have the value FALSE. The
ACTIVE parameter has the value TRUE.
The block saves the program specified at the PARAM1 parameter.
Note
• In isolated cases, saving a program can take up to 35 s.
• The value of PARAM1 must not be changed before the job is completed.
It then queries the program now selected on the reader and outputs this program at the
CODE_OUT parameter.
If the program now selected matches the program specified at the PARAM1 parameter, the
ACTIVE parameter will have the value FALSE and the DONE parameter the value TRUE.
If the program now selected does not match the program specified at the PARAM1
parameter, the ACTIVE parameter will have the value FALSE and the ERROR parameter
the value TRUE. The ERRCODE parameter contains an appropriate error message.
The system also checks whether program saving is being blocked by a "Service" or "User1"
user logged on to the user interface who has taken over control of the reader, and whether
program saving has been successful. If an error is detected, the ACTIVE parameter has the
value FALSE and the ERROR parameter has the value TRUE. The ERRCODE parameter
contains an appropriate error message.
If you attempt to cancel a current save program job, the ERRCODE parameter will change to
DW#16#00000002; however, processing for the job will be completed.
Sequence when outputting the currently selected program (COMMAND = W#16#0003)
When the job is triggered, the parameters DONE and ERROR have the value FALSE.
The ACTIVE parameter has the value TRUE.
The block then queries the program now selected on the reader and outputs this program at
the CODE_OUT parameter.
If no error occurs in the transfer of the program number, the ACTIVE parameter will have the
value FALSE and the DONE parameter the value TRUE.