TB_ECT_Manager

General information

This block makes it possible to influence the arrangement of the slaves when the field bus is started. Slaves can also be declared as optional. Thus, e.g. a maximum number of slaves can be configured, but these can be adjusted and rearranged by the software at runtime. In addition, there are other settings, which are described below.

Darstellung in FBD

General description

The block must be given the required fieldbus configuration from ProMaster. This is done with the input, output variable _ECT_SetConfig of type ECT_SETCFG_ARRAY. Each node is represented or simulated by ProMaster in the IEC. This means that the information of the fieldbus configuration is available in the IEC.

In addition, the IP address, the subnet mask and the optional slave option can be set for each slave. Using the variable "ui_EbusGroupNr", each module block can be assigned a unique number if several IO couplers are used.

Note: The nodes are not assigned according its Alias-ID! That means that the first slave found on the fieldbus gets assigned to the not yet found slave in the SetConfig

Because this Function Block needs to take over control of the filebus-boot-sequence in order to assign the slaves in state INIT, you need to make sure Motion Control gives its control to the IEC.

Following settings in ProMaster has to be set:
(ProMaster 1.19.1.60 - Release)
The following procedure takes place when the block is started:
1. Fieldbus may be switched to INIT if necessary
2. Scan the nodes on the fieldbus and compare with configuration
3. If necessary, the nodes are re-sorted
4. Setting EoE (When set)
5. Fieldbus is switched to OPERATIONAL
6. Start Motion Control (if set)


Recommended Task: EVENT
Used libraries: ECM_CS001_40bd06
MOTION_CONTROL_40bd10
MOTION_TYPES_40bd09
BM_TYPES_40bd04
TECH_TYPES_40bd09
MC_SYS_40bd09

In-/Outputs

Name: Type: Description:
_ECT_SetConfig ECT_SETCFG_ARRAY With this structure, the block is given the required fieldbus configuration. Each array index represents a node (index 1 = node 1, ...). The block is thus used to transmit the fieldbus configuration from ProMaster.

The following setting options are available for each node:
dw_ProductCode: Product code (Info from ProMaster can be viewed) dw_IPAddress: IP-Address
dw_SubNetMask: Subnet mask
x_Optional: Optional = TRUE
ui_EbusGroupNr: Group number of the IO terminal block
_ECT_ActConfig ECT_ACTCFG_ARRAY In this structure, the information of the slaves found on startup on the fieldbus is collected. This structure is only for display / diagnosis. Again, each index corresponds to a node on the fieldbus.
_Base ECM_PLC_MA_BMSTRUCT DPRAM interface to the EtherCAT. For PCC =% MB3.2016384

Inputs

Name: Type: Description:
x_Execute BOOL A rising edge starts the execution of the block. The procedure described in the description is followed.
_Options ECT_OPTIONS_STRCT Options for the behavior of the block at startup can be defined here:
x_StartMotionAfter: TRUE, if the block is to start Motion Control after the fieldbus start
x_Set_EoE: Set EoE settings for the nodes
x_DifferBetwBM5AndBM3: If TRUE, then with a BM5000 axis with the product code of a BM3300 worked.

Outputs

Name: Type: Description:
x_Busy BOOL Indicates that the function block is being processed.
x_FieldbusBoot_Done BOOL TRUE if the fieldbus has been started successfully. x_Busy then goes to FALSE.
x_StartMCCore_Done BOOL Motion Control started successfully.
x_Error BOOL Error on the block.
_ErrorInfo ERR_INFO_STRCT Structure with error details: _FBs_ErrList: Displays the error number associated with the internal function block. Error details can then be viewed in the corresponding library.
x_MandatorySlaveMissing: TRUE if a mandatory slave is missing on the fieldbus
dw_MandSlaveMissProdCode: Indicates which mandatory slave is missing
i_MandSlaveAtNodeMissing: Displays the number of the node that is missing
dw_ProductCodeNotValid: Displays the product code which is not valid is or does not match the configuration.
x_SlaveIsMissing: TRUE if a slave is missing
x_MoreActSlaveThanSetInCfg: TRUE if more slaves of a configured product code were found on the fieldbus than originally configured.