Siemens S7-300 Configuration Manual page 134

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

Advertisement

Intelligent PROFINET IO device with S7-300 CP
7.6 Example of configuration and programming
Transferring the Q addresses to the process outputs (DB11) with PNIO_RECV
For the configured Q addresses, you need to make data areas (for example in a DB)
available on the PROFINET IO devices, in this example in a DB11 that has not only data
areas for the process data but also for the status information IOPS.
Figure 7-5
The PNIO_RECV call interface in the user program
AWL
call fc 12
CPLADDR:= W#16#0100
MODE: = 0
LEN := 7
IOPS := P#DB11.DBX7.0 BYTE 1
NDR := M 74.0
ERROR := M 74.1
STATUS := MW76
CHECK_IOPS := M74.2
RECV := P#DB11.DBX0.0 BYTE 7
ADD_INFO:= MW 26
134
Data structure for PNIO_RECV on the PROFINET IO device
Explanation
//PNIO_RECV block call
//(read outputs from IO controller)
//Module address from hardware configuration
//IO device mode not both modes at same time
//No. of log. Q addresses to transf. in bytes
//One status bit in DB11 per receive data byte
//Address for return parameter NDR
//Address for return parameter ERROR
//Address for return parameter STATUS
//Address for return parameter CHECK_IOPS
//Received data in DB11 (7 bytes)
//Diagnostic information
Configuring and commissioning S7 CPs for Industrial Ethernet
Configuration Manual, 09/2013, C79000-G8976-C182-13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S7-400

Table of Contents