EasyManua.ls Logo

Siemens S7-300 - Page 133

Siemens S7-300
246 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Intelligent PROFINET IO device with S7-300 CP
7.6 Example of configuration and programming
Configuring and commissioning S7 CPs for Industrial Ethernet
Configuration Manual, 09/2013, C79000-G8976-C182-13
133
Transferring the process inputs (DB10) to the I addresses using PNIO_SEND
For the configured I addresses, you need to make data areas (for example in a DB) available
on the PROFINET IO devices, in this example in a DB10 that has not only data areas for the
process data but also for the status information IOCS.
Figure 7-4 Data structure for PNIO_SEND on the PROFINET IO device
The PNIO_SEND call interface in the user program
AWL Explanation
call fc 11 //PNIO_SEND block call
//(transfer inputs to the IO controller)
CPLADDR:= W#16#0100 //Module address from hardware configuration
CPLADDR:= W#16#0100 //IO controller mode (0) or IO device mode (1)
LEN := 20 //No. of log. I addresses to transf. in bytes
IOCS := P#DB10.DBX20.0 BYTE 3 //One status bit in DB10 per send data byte
DONE := M 70.0 //Address for return parameter DONE
ERROR := M 70.1 //Address for return parameter ERROR
STATUS := MW 72 //Address for return parameter STATUS
CHECK_IOCS := M 70.2 //Address for return parameter CHECK_IOCS
SEND := P#DB10.DBX0.0 BYTE 20 //Data area from DB10 to be transferred
//(20 bytes)

Table of Contents

Other manuals for Siemens S7-300

Related product manuals