Siemens SINUMERIK 840D sl Function Manual page 870

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.10 Structure and functions of the basic program
Example: OP with direct keys
The direct keys of the OPs at the Ethernet bus should be transferred to the PLC. Previously,
the direct keys have been transferred to the PLC via the PROFIBUS or via a special cable
connection between OP and MCP.
For connecting the direct keys via the Ethernet, this concerns e.g. the "OP 08T", there is a
parameterization in the basic program for activating the data transport. The related parameters
lie in the instance DB of the FB 1 (OpKeyNum to OpKeyBusType, see data table). The
parameters are provided by the user in the start OB100 by connecting the parameter at the
FB1 call. The bus address and Op1/2KeyStop can also be modified in the cyclic operation by
writing the FB1 instance DB DB 7.
The transport of the user data of the direct keys runs in the same way as in the case of Ethernet
MCP. The data transport can also be stopped and restarted via writing the DB7-parameter
"Op1/2KeyStop". During the Stop phase the address of the direct key module (TCU-index or
the MCP-address) can also be changed.
After resetting the Stop signal, a connection to the new address is established.
The status of the respective direct-key interfaces can be read in the interface signal:
DB10.DBX104.3 (OP1Key ready)
or
DB10.DBX104.4 (OP2Key ready)
Address direct keys
For the parameter Op1/2KeyBusAdr the TCU index is normally to be used. This affects the
OPs, such as OP 08T, OP 12T, which for the direct keys do not have special cable connection
to an Ethernet MCP.
If OPs with direct keys have a special cable connection and these are connected to an Ethernet-
MCP, then for the parameter Op1/2KeyBusAdr the address of the MCP (DIP-switch setting of
the MCP) is to be used. Only the data stream of the direct keys (2 bytes) is transferred via the
direct key interface.
Alarm direct keys
An error entry is also made in the PLC alarm buffer for timeouts. As a result, the following error
messages are output at the HMI:
● 400274: Direct key 1 failed
or
● 400275: Direct key 2 failed
Control unit switching for direct keys
The user connects Op1/2KeyBusAdr with 0xFF and stop = TRUE in start block OB100. The
direct key address of the M-to-N interface is connected to parameter "Op1KeyBusAdr" via the
M-to-N block FB9.
Relevant parameters (FB1)
Direct keys
OpKeyNum = 1 or 2 (number of OPs with direct keys)
Op1KeyIn
870
Op2KeyIn
e.g. direct keys OP 08T
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents