FSoEParamsInit

PLCopen motion icon Pipe Network motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - 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

TRUE, FALSE

N/A

No default

On the rising edgeClosed The transition of a digital signal from low to high. AKA: positive edge. the functionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. block initiates safety parameter transfer from the FSoE master at address FSoEMasterAddres to its safety slaves.

FSoE Master's EtherCATClosed Ethernet ofr Control Automation Technology. EtherCAT® is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT is to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs. device address

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