Siemens S7-300 Configuration Manual page 133

Hide thumbs Also See for S7-300:
Table of Contents

Advertisement

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
The PNIO_SEND call interface in the user program
AWL
call fc 11
CPLADDR:= W#16#0100
CPLADDR:= W#16#0100
LEN := 20
IOCS := P#DB10.DBX20.0 BYTE 3
DONE := M 70.0
ERROR := M 70.1
STATUS := MW 72
CHECK_IOCS := M 70.2
SEND := P#DB10.DBX0.0 BYTE 20
Configuring and commissioning S7 CPs for Industrial Ethernet
Configuration Manual, 09/2013, C79000-G8976-C182-13
Data structure for PNIO_SEND on the PROFINET IO device
Explanation
//PNIO_SEND block call
//(transfer inputs to the IO controller)
//Module address from hardware configuration
//IO controller
//No. of log. I addresses to transf. in bytes
//One status bit in DB10 per send data byte
//Address for return parameter DONE
//Address for return parameter ERROR
//Address for return parameter STATUS
//Address for return parameter CHECK_IOCS
//Data area from DB10 to be transferred
//(20 bytes)
Intelligent PROFINET IO device with S7-300 CP
7.6 Example of configuration and programming
mode (0) or IO device mode (1)
133

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S7-400

Table of Contents