Process interfacing via an automation system (PLC, PC)
9.9 Example programs
SIMATIC MV500
Operating Instructions, 06/2018, C79000-G8976-C494-01
169
9.9
Example programs
This section describes various examples of process connection.
Examples
●
Example 1:
Program for connecting the optical reader with a SIMATIC controller using FB79.
●
Example 2:
Program for archiving diagnostic information on a PC
●
Example 3:
You can find an application example for the communication of an optical reader with a
SIMATIC S7-1200-/S7-1500 controller on the Web pages of Siemens Industry Online
Support (
https://support.industry.siemens.com/cs/ww/en/view/103528928
9.9.1
Connection of the optical reader to a SIMATIC controller using FB 79
You can find the program described in this section on the Web pages of Siemens Online
Product Support (
https://support.industry.siemens.com/cs/ww/en/ps/15147/ae
Integration of FB 79 into a STEP 7 program
In the accompanying STEP 7 program, the FC1 function contains a simple example for
outputting the result string. You can execute a program change using the FC2 function.
When supplied, only FC1 is called in OB1. To activate FC2, you will need to either delete the
first network with the FC1 call or skip it.
Note
Requirement
You may only assign the value "W#16#0081" for the "COMMAND" parameter (output result
string) when bit 2 is set to TRUE in the status byte (corresponds to the "RDY" signal). If this
condition is not met, the "Invalid operating mode" error is output.
Process interfacing
The optical reader is connected with a programmable logic controller via PROFINET IO. A
light barrier or sensor is used additionally for triggering and must be read in via a digital input
module. The received data is stored in data block DB48 in bytes 0 to 500.
Содержание SIMATIC MV540 H
Страница 24: ...Description 1 7 Functional description SIMATIC MV500 24 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 194: ...Service and maintenance 10 3 Replacing a module SIMATIC MV500 194 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 232: ...Appendix A 3 Alternative user interfaces SIMATIC MV500 232 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 236: ...List of abbreviations SIMATIC MV500 236 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 238: ...Service Support SIMATIC MV500 238 Operating Instructions 06 2018 C79000 G8976 C494 01 ...