Detailed description
2.7 Structure and functions of the basic program
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
71
Example OP's: Direct control key
The direct control keys of the OP's at the Ethernet-Bus should be transferred to the PLC. Till
now, the direct control keys have been transfered to the PLC via the Profibus or via a special
cable connection between OP and MCP.
For connecting the direct control keys via the Ethernet, this concerns e.g. the "OP08T", 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 OB 100 through the switching of
the parameter at the FB 1 call. The bus address and Op1/2KeyStop can also be modified in
the cyclic operation by writing the FB 1-Instance-DB DB 7.
The transport of the user data of the direct control 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 DB 7-
parameter "Op1/2KeyStop". During the Stop-phase the address of the direct control 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.
In the interface signals from NCK
DB10, ... DBX104.3 (OP1Key ready) and DB10, ... DBX104.4 (OP2Key ready) the status of
the respective direct control key interface can be read.
Address Direct Control Keys
For the parameter Op1/2KeyBusAdr the TCU-index is normally to be used. This affects the
OP’s, such as OP08T, OP12T, which for the direct control keys do not have special cable
connection to an Ethernet-MCP.
If OP’s with direct control 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 control keys (2
bytes) is transferred via the direct control key interface.
Alarm direct control keys
An error entry is also made in the PLC alarm buffer for timeouts. resulting in the following
error messages on the HMI:
- 400274: Direct control key 1 failed or
- 400275: Direct control key 2 failed
Control unit switching for direct control keys
The user switches Op1/2KeyBusAdr with 0xFF and Stop = TRUE in the startup block OB
100. Via the M to N block FB 9 the direct control key address of the M to N-interface is
stored to the parameter "Op1KeyBusAdr".
Summary of Contents for SINUMERIK 840D sl
Page 282: ...Index Basic logic functions Acceleration B2 64 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 388: ...Basic logic functions Travel to fixed stop F1 Function Manual 11 2006 6FC5397 0BP10 2BA0 52 ...
Page 962: ...Index Basic logic functions Emergency Stop N2 20 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1704: ...Constraints Basic logic functions Spindles S1 94 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1716: ...Index Basic logic functions Spindles S1 106 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1996: ...Index Basic logic functions Tool Offset W1 208 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2150: ...Table of contents Basic logic functions Appendix 4 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2184: ...Glossary Basic logic functions Appendix 38 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...