FSoEParamsInit

PLCopen motion icon Pipe Network motion icon

 Function Block - Transfers safety parameters from the safety master to safety slave devices to initialize the safety network.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

FALSE, TRUE

N/A

No default

On the rising edge the function block initiates safety parameter transfer from the FSoE master at address FSoEMasterAddres to its safety slaves.

FSoEMasterAddress

INT

-32768 to +32767

N/A

No default

The EtherCAT slave address of the FSoE master that is asked to initialize safety parameters.

  • The first EtherCAT slave usually has the value 1001.
  • The second slave usually has the value 1002.
  • Alternately, use the members of the EtherCAT structure to specify the EtherCAT address of the safety master.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

FALSE, TRUE

N/A

Indicates whether this function block has completed without error.

Error

BOOL

FALSE, TRUE

N/A

Indicates whether this function block has completed with error.

ErrorID

DINT

No range

N/A

The parameter initialization error result.

Remarks

This function block reads the safety parameters from the FSoE master from the input FSoEMasterAddress and transfers them to the intended safety slave device using EtherCAT SDO communication.

  • The function block:
    • Checks the FSoE master's register for the safety parameter transfer on the rising edge of the Execute input.
    • Gets the EtherCAT address of the safety slave that receives the safety parameter if the FSoE master has any safety parameters to transfer.
      • Once the address is read and validated from the FSoE master, the function block reads the actual parameter from the FSoE master and writes the parameter to the safe slave.
  • The Done output is set to 1 when all parameters to all of the intended Safety slaves are written.
  • The Error output is set to 1 and the appropriate ErrorID is set in the ErrorID output if any error occurred during this process.
  • FSoE masters supported by this function block: BBH SCU-1-EC

Figure 1: FSoEParamsInit

EtherCAT Error Codes

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

Inst_FSoEParamsInit(True, EtherCAT.FSoE_Mst_1);

See Also