Ethernet communication
7.6 HT 8
Manual
220 Commissioning Manual, 05/2008, 6FC5397–4CP10–4BA0
Alternate activation of two functions
An implementation option of alternate activation of two functions with each positive edge of
an input signal is shown by the following listing:
OB 1 (excerpt)
CLR
U E 1.3 // (1) If positive edge of user softkey U2?
FBD G 102.1
= G 102.3
UN G 102.3
SPB M007
CLR // (1) THEN
U G 102.2 // (2) IF Flip-Flop == 0 ?
SPB M006 // (2) THEN
..... // Activate Function 1 (e.g. display)
I G 102.2 // Flip-Flop = 1
SPA M007
// (2) ELSE (Flip-Flop == 1)
M006: .... // Activate Function 2 (e.g. switch-off)
R G 102.2 // Flip-Flop = 0
// (2) ENDIF
M007: NOP 0 // (1) ENDIF
7.6.5.10 Input/output image
Input image
The address specification of the input image EB takes place in the FB 1 function module,
parameters: "MCPxIn", with x = 1 for the 1st MCP and x = 2 for the 2nd MCP.
Table 7-6 Assignment of the signals in the input image
Signals from HT 8
Byte Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Function keys EB n+0
[REF] TEACH AUTO [MDA] JOG QUIT RESET [WCS/
MCS]
Function keys EB n+1
CPF
(U key)
{U4} {U3} BigFct {U2} {U1} [INC] [REPOS]
Traversing keys + EB n+2 - Changeove
r
axes
Ax6+ Ax5+ Ax4+ Ax3+ Ax2+ Ax1+
EB n+3 - - Traversing keys -