Siemens SINUMERIK 828D Function Manual page 62

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

A2: Various NC/PLC interface signals and functions
1.3 Functions
Example
A WORD is to be transferred from the PLC to the NC.
The position offset within the NCK input (PLC output area) should be the fourth byte. The position offset must be
a whole-number multiple of the data width.
Writing from PLC:
Program code (extract)
. . .
CALL FC21 (
Enable
:=M10.0,
Funct
:=B#16#4,
S7Var
:=P#M 104.0 WORD1,
IVAR1
:=04,
IVAR2
:=-1,
Error
:=M10.1,
ErrCode :=MW12);
. . .
)
Reading in part program
Program code (extract)
. . .
PLCDATA = $A_DBW[4];
. . .
Behavior during POWER ON, block search
The DPR communications buffer is initialized during "POWER ON".
During a "block search", the PLC variable outputs are collected and transferred to the DPR communications
buffer with the approach block (analogous to writing of analog and digital outputs).
Other status transitions have no effect in this respect.
62
Comment
;if TRUE, then FC21 active
Comment
// Read a word
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Basic Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents