P3: Basic PLC Program for SINUMERIK 840D sl
13.8 Structure and functions of the basic program
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
897
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".
MCP identification
Via the Identify interface in the DB 7 it is possible to query the type of the Ethernet component (MCP, HT2, HT8
or direct keys) with the relevant parameters at the input/output in cyclic operation:
• Relevant parameters at the input:
"IdentMcpBusAdr", "IdentMcpProfilNo", "IdentMcpBusType", "IdentMcpStrobe"
• Relevant parameters at the output:
"IdentMcpType", "IdentMcpLengthIn", "IdentMcpLengthOut",
Here the DIP device address or the TCU index at the parameter "IdentMcpBusAdr" is activated by the user
program together with setting of the Strobe signal.
The input parameter "IdentMcpProfilNo" is normally to be set to the value 0. This parameter is to be set to the
value 1 only in the identification of the direct control keys. The parameter "IdentMcpBusType" currently has no
significance for a user program and is to be left in its default value.
After resetting the Strobe signal by the basic program, valid output information becomes available to the user.
The resetting of the Strobe signals by the basic program can last for several PLC cycles (up to 2 seconds).
The output parameters should show the user the size of the data areas for the addressed device. Furthermore, it
can be defined here, whether an HT2 or an HT8 or no device is connected to the connection box. With this
information the MCP channel or the HHU-channel can be activated. In the cyclic operation the parameters can be
written symbolically by the user program and read via the symbol names of the DB 7 (gp_par).
Relevant parameters (FB 1)
Direct control key
e.g. direct keys OP08T
OpKeyNum = 1 or 2 (number of OP’s with direct keys)
Op1KeyIn
Op2KeyIn
Op1KeyOut
Op2KeyOut
OpKey1BusAdr
Op2KeyBusAdr
Address: TCU Index:
Op1KeyStop
Op2KeyStop
Op1KeyNotSend
Op2KeyNotSend
OpKeyBusType = b#16#55 (via CP 840D sl)
Relevant parameters (FB 1)
MCP-device identification
Input parameters e.g. OP08T
Input
Output
Values in direct control keys
IdentMcpBusAdr
IdentMcpType
IdentMcpBusAdr = TCU-Index
IdentMcpBusProfilNo
IdentMcpLengthIn
IdentMcpBusProfilNo = Value 1
IdentMcpBusType
IdentMcpLengthOut
IdentMcpBusType = Default value
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...