Siemens SINUMERIK 840DE sl Commissioning Manual page 895

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

2.2
Configuration in the PLC user program
Loading configurations
The configurations created are transferred to the manufacturer directory of the control, with
the script and text file. Additionally, the corresponding PLC user program should be loaded.
Programming the equipment
Communication between the operator component and the PLC takes place in the PLC user
program via a data block defined by the programmer, in which 128 words are reserved for the
management of the devices. The description for the data block identifier is provided in Chapter
"PLC_INTERFACE (Page 192)."
The data block must be generated and loaded as a user block. The relevant block must be
declared to the EasyExtend function using the plc_interface tag in the "agm.xml" script.
Note
Compatibility
We recommend defining data block DB9905 as the PLC interface so that the scripts are also
compatible with SINUMERIK 828D.
Example:
<plc_interface name = "plc/db1000.dbb0" />
To create the block, data formats and symbolic identifiers from the following table can be used:
Data format/symbolic identifier
DBX0.0 Enable_1 BOOL Bit OFF OFF HMI → PLC
DBX0.1 Activate_1 BOOL Bit OFF OFF HMI → PLC
DBX0.2 Deactivate_1 BOOL Bit OFF OFF HMI → PLC
DBB1 Res_1 BYTE Unsigned 0 0
DBX2.0 IsActive_1 BOOL Bit OFF OFF PLC → HMI
DBX2.1 Error_1 BOOL Bit OFF OFF PLC → HMI
DBB3 DeviceId_1 BYTE Unsigned 0 0
PLC words are assigned beginning with Device 1:
Data block
DB9905.DBB0
DB9905.DBB4
...
DB9905.DBB192
DB9905.DBB196
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
2.2 Configuration in the PLC user program
Meaning
Device has been started up
Device is to be activated
Device is to be deactivated
Reserved for future use
Device is active
Device has an error
Unique device number
Device designation
Device 1
Device 2
...
Device 49
Device 50
Generating commissioning dialogs
177

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents