Siemens SINUMERIK 840D sl Function Manual page 1039

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

BEGIN
NETWORK
//Deactivate synchronized actions with ID3, ID10 and ID31 in NC channel 1 :
SYAK:
//Synchronized actions from NCK channel 1:
SYVK:
TRAN:
END_FUNCTION
Function 3, 4: Fast data exchange PLC-NC
General
A separate, internal data area is provided to allow the highspeed exchange of data between
the PLC and NC. The size of the internal data field is preset to 4096 bytes. PLC access
operations (reading/writing) are realized via FC21. The assignment of this area (structure)
must be identically declared in the NC part program and PLC user program.
These data can be accessed from the NC parts program by commands $A_DBB[x],
$A_DBW[x], $A_DBD[x], $A_DBR[x] (see Parameter Manual System variables).
The concrete address in the data array is specified by a byte offset (0 to 4095) in parameter
"IVAR1". In this case, the alignment must be selected according to the data format, i.e. a Dword
starts at a 4byte limit and a word at a 2byte limit. Bytes can be located on any chosen offset
within the data field, singlebit access operations are not supported and converted to a byte
access operation by FC21. Data type information and quantity of data are taken from the ANY
parameter, transferred via S7Var.
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
AUF
DB21;
SET;
S
DBX300.
//ID3
2;
S
DBX301.
//ID10
1;
S
DBX303.
//ID31
6;
L
B#16#1;
T
MB11;
SPA
TRAN;
L B#16#2;
T MB11;
CALL FC21 (
Enable
:= M 10.0,
Funct
:= MB 11,
S7Var
:= #myAny,
IVAR1
:= 1,
IVAR2
:= 0,
Error
:= M 10.1,
ErrCode
:= MW 12);
P3: Basic PLC program for SINUMERIK 840D sl
//if TRUE, FC 21 active
//Not used
//Channel no.
13.17 Block descriptions
1039

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents