Connections
The outputs must be connected using the unit-global variables of the "AddOn" MCC source file
with the inputs of the DCC_SCTARGETS DCC block.
Table 3-29 FB_TargetsPLCToAddOn connections
Name Type Data
type
Unit-global variables of "AddOn" Meaning
Targets_IO_PIW IN ARRAY
[0..5] OF
word
addon_targets_receive Input array for the Targets
block (see Figure 5-13 Ad‐
dress list in SCOUT (commu‐
nication between SIMATIC
S7 and SIMOTION)
(Page 122))
b16_stw1 OUT WORD Control word 1 output not sep‐
arated into individual bits
bo_stw1_Use_Lash_Platf OUT BOOL targets_plc_use_lash_plat Bit 2 of control word 1
bo_stw1_Stack_Form_Bit0 OUT BOOL targets_plc_stack_form_bit0 Bit 3 of control word 1
bo_stw1_Stack_Form_Bit1 OUT BOOL targets_plc_stack_form_bit1 Bit 4 of control word 1
bo_stw1_Cycling OUT BOOL targets_plc_cycling Bit 5 of control word 1
bo_stw1_Offset_To_Land OUT BOOL targets_plc_offset_to_land Bit 6 of control word 1
bo_stw1_Offset_To_Water OUT BOOL targets_plc_offset_to_water Bit 7 of control word 1
bo_stw1_Learn_Lash_Platf OUT BOOL targets_plc_learn_lash_platf Bit 1 of control word 1
bo_stw1_Learn_Park_Pos OUT BOOL targets_plc_learn_park_pos Bit 0 of control word 1
bo_stw1_Use_Extern_Targets OUT BOOL targets_plc_use_extern_targets Bit 8 of control word 1
bo_stw1_Init_Targets OUT BOOL targets_PLC_Init_Targets Bit 9 of control word 1
i8Lane_Load OUT SINT targets_PLC_Lane_Ship_Load Number of the lane from
which the ship will be loaded
i8Lane_Unload OUT SINT targets_PLC_Lane_Ship_Unload Number of the lane from
which the ship will be unloa‐
ded
i8Learn_Pos_Lane OUT SINT targets_PLC_Learn_Pos_Lane Store current position with
this lane number
3.3.2.12 FB_TargetsAddOnToPLC
Symbol (FBD representation)
)%B7DUJHWV$GG2Q7R3/&
%22/
%22/
%22/
6,17
6,17
ERB]VZB3RVB6DYHG
ERB]VZB'LUHFWLRQB/DQG
ERB]VZB'LUHFWLRQB:DWHU
L/DQHB6KLSB/RDGB2.
L/DQHB6KLSB8QORDGB2.
7DUJHWVB,2B34:
$55$<
Figure 3-26 FB_TargetsAddOnToPLC
Overview of the software
3.3 Sway control function blocks
SC integrated STS, GSU
Operating Instructions, 07/2019, A5E48271265B AA 71