Warning

You are reading an old version of this documentation. If you want up-to-date information, please have a look at 2024.12 .

Function blocks description

FB_Execute_Sequence

Inputs and Outputs description

This function block can be used to trigger the execution of a vibration sequence. This function block also allows to turn ON or OFF the backlight of the Asycube. One instance of this block is used per Asycube.

../../../_images/FB_Execute_sequence_ethercat.png

Fig. 168 FB_Execute_Sequence

Table 35 Inputs

Variable

Type

Description

boStartPIN

Boolean

A rising edge starts the sequence.

boStopPIN

Boolean

A rising edge stops the sequence.

If the system is in Error state, a rising edge clears the error.

inSeqIDPIN

Integer

Vibration ID (0..25)

inVibrationSetPIN

Integer

Vibration recipe ID (1..26)

inNbPartsPIN

Integer

Number of remaining parts currently on the Asycube.

inNbPartsMaxPIN

Integer

Desired number of parts that you want on the Asycube.

inXPosPIN

Integer

X Coordinate of the center of mass of the remaining parts (-100..100).

Corresponds to 100x the values described in the coordinate system for the center of mass.

inYPosPIN

Integer

Y Coordinate of the center of mass of the remaining parts (-100..100).

Corresponds to 100x the values described in the coordinate system for the center of mass.

boBacklightPIN

Boolean

Turns ON and OFF the backlight

regAsycubeWritePIO

Struct

This input must be linked to the GVL structure containing the write registers. (see Plugin installation and configuration to import the structure)

regAsycubeReadPIO

Struct

This input must be linked to the GVL structure containing the read registers. (see Plugin installation and configuration to import the structure)

Table 36 Outputs

Variable

Type

Description

woStatePOU

Word

State : 0 = Idle, 1 = Running, 2 = Stopping, 10 = Error

boDonePOU

Boolean

A rising edge indicates the end of the sequence

boBacklightStatePOU

Boolean

State: TRUE = backlight ON, FALSE = Backlight OFF

tiRemainingTimePOU

Time

Remaining time of the sequence

boErrorPOU

Boolean

Goes to TRUE if an error occurred on the block

inErrorIDPOU

Integer

Error ID (See Error List)

stErrorNamePOU

String

Error Description (See Error List)

Error List

Table 37 FB_Execute_Sequence - Error List

ID

Cause

Resolution

700

Transition error

Input that was activated is not allowed in the current state.

Only use command when you are in the correct state.

701

Modbus error

Refer to Main Modbus exception codes

702

Internal Modbus error

Refer to Holding Register: error codes

703

Warning

Refer to Asycube warnings and alarms

704

Alarms

Refer to Asycube warnings and alarms

705

Gateway disconnected from PLC

Communication problem on the EtherCAT segment

Check the cable between gateway and PLC

706

Asycube disconnected from gateway

Communication problem on the Modbus TCP segment

Check the cable between gateway and Asycube

707

Time out

Connection was lost with the Asycube

Check the cables. Check that the Asycube is supplied. Check the Gateway state.

708

Wrong parameter

Wrong input parameter

Correct the wrong input parameter.

709

-

N/A

-

FB_Execute_Platform_Vibration

This function block is used to execute a single platform vibration. Standard vibration or centering vibration can be triggered using this block.

Inputs and Outputs description

../../../_images/FB_Execute_platform_vibration_ethercat.png

Fig. 169 FB_Execute_Platform_Vibration

Table 38 Inputs

Variable

Type

Description

inSelectModePIN

Integer

Mode: 0 = Standard Vibration, 1 = Centering vibration

boStartPIN

Boolean

A rising edge starts the vibration.

boStopPIN

Boolean

A rising edge stops the vibration.

If the system is in “Error” state, a rising edge clears the error.

inVibrationIDPIN

Integer

Vibration ID (0..25)

inVibrationSetPIN

Integer

Vibration recipe ID (1..26)

inXPosPIN

Integer

X Coordinate of the center of mass of the remaining parts (-100..100).

Corresponds to 100x the values described in the coordinate system for the center of mass.

Only if Mode = 1.

inYPosPIN

Integer

Y Coordinate of the center of mass of the remaining parts (-100..100).

Corresponds to 100x the values described in the coordinate system for the center of mass.

Only if Mode = 1.

tiDurationPIN

Time

Duration of vibration (0 = unlimited). Only if Mode = 0

Table 39 Outputs

Variable

Type

Description

woStatePOU

Word

State : 0 = Idle, 1 = Running, 2 = Stopping, 10 = Error

boDonePOU

Boolean

A rising edge indicates the end of the sequence

tiRemainingTimePOU

Time

Remaining time of the vibration.

boErrorPOU

Boolean

Goes to TRUE if an error occurred on the block

inErrorIDPOU

Integer

Error ID (See Error List)

stErrorNamePOU

String

Error Description (See Error List)

Table 40 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Struct

This input must be linked to the GVL structure containing the write registers (See Plugin installation and configuration to import the structure)

regAsycubeReadPIO

Struct

This input must be linked to the GVL structure containing the read registers (See Plugin installation and configuration to import the structure)

Error List

Table 41 FB_Execute_Platform_Vibration - Error List.

ID

Cause

Resolution

710

Transition error

Input that was activated is not allowed in the current state.

Only use command when you are in the correct state.

711

Modbus error

Refer to Main Modbus exception codes

712

Internal Modbus error

Refer to Holding Register: error codes

713

Warning

Refer to Asycube warnings and alarms

714

Alarms

Refer to Asycube warnings and alarms

715

Gateway disconnected from PLC

Communication problem on the EtherCAT segment

Check the cable between gateway and PLC

716

Asycube disconnected from gateway

Communication problem on the Modbus TCP segment

Check the cable between gateway and Asycube

717

Time out

Connection was lost with the Asycube

Check the cables. Check that the Asycube is supplied. Check the Gateway state.

718

Wrong parameter

Wrong input parameter

Correct the wrong input parameter.

719

-

N/A

-

FB_Execute_Hopper_Vibration

This function block is used to execute a single hopper vibration. Standard vibration or Quantity Adjusted vibration can be triggered using this block.

Inputs and Outputs description

../../../_images/FB_Execute_hopper_vibration_ethercat.png

Fig. 170 FB_Execute_Hopper_Vibration

Table 42 Inputs

Variable

Type

Description

inSelectModePIN

Integer

Mode: 0 = Standard Vibration, 1 = Centering vibration

boStartPIN

Boolean

A rising edge starts the vibration.

boStopPIN

Boolean

A rising edge stops the vibration.

If the system is in Error state, a rising edge clears the error.

inVibrationIDPIN

Integer

Vibration ID (0..25)

inVibrationSetPIN

Integer

Vibration recipe ID (1..26)

inNbPartsPIN

Integer

Number of remaining parts currently on the Asycube. Only if Mode = 1

inNbPartsMaxPIN

Integer

Desired number of parts that you want on the Asycube. Only if Mode = 1.

tiDurationPIN

Time

Duration of vibration (0 = unlimited). Only if Mode = 0

Table 43 Outputs

Variable

Type

Description

woStatePOU

Word

State : 0 = Idle, 1 = Running, 2 = Stopping, 10 = Error

boDonePOU

Boolean

A rising edge indicates the end of the sequence

tiRemainingTimePOU

Time

Remaining time of the sequence

boErrorPOU

Boolean

Goes to TRUE if an error occurred on the block

inErrorIDPOU

Integer

Error ID (See Error List)

stErrorNamePOU

String

Error Description (See Error List)

Table 44 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Struct

This input must be linked to the GVL structure containing the write registers (See Plugin installation and configuration to import the structure)

regAsycubeReadPIO

Struct

This input must be linked to the GVL structure containing the read registers (See Plugin installation and configuration to import the structure)

Error List

Table 45 FB_Execute_Platform_Vibration - Error List.

ID

Cause

Resolution

720

Transition error

Input that was activated is not allowed in the current state.

Only use command when you are in the correct state.

721

Modbus error

Refer to Main Modbus exception codes

722

Internal Modbus error

Refer to Holding Register: error codes

723

Warning

Refer to Asycube warnings and alarms

724

Alarms

Refer to Asycube warnings and alarms

725

Gateway disconnected from PLC

Communication problem on the EtherCAT segment

Check the cable between gateway and PLC

726

Asycube disconnected from gateway

Communication problem on the Modbus TCP segment

Check the cable between gateway and Asycube

727

Time out

Connection was lost with the Asycube

Check the cables. Check that the Asycube is supplied. Check the Gateway state.

728

Wrong parameter

Wrong input parameter

Correct the wrong input parameter.

729

-

N/A

-

FB_Backlight

This function block is used to control the backlight. Backlight can be controlled in continuous or in flash mode.

Inputs and Outputs description

../../../_images/FB_Backlight_ethercat.png

Fig. 171 FB_Backlight

Table 46 Inputs

Variable

Type

Description

boLightONPIN

Boolean

A rising edge turns ON the backlight

boLightOFFPIN

Boolean

A rising edge turns OFF the backlight.

If the system is in Error state, a rising edge clears the error.

tiDurationPIN

Time

Duration of the backlight. If 0, backlight turns OFF only if boLightOFFPIN is activated.

Table 47 Outputs

Variable

Type

Description

woStatePOU

Word

State: 0 = IDLE, 1 = Running, 2 = Stopping, 10 = Error

tiRemainingTimePOU

Time

Remaining time of backlight. If tiDurationPIN ≠ 0.

boErrorPOU

Boolean

Goes to TRUE if an error occurred on the block

inErrorIDPOU

Word [Signed]

Error ID (See Error List)

stErrorNamePOU

String

Error Description

Table 48 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Struct

This input must be linked to the GVL structure containing the write registers (See Plugin installation and configuration to import the structure)

regAsycubeReadPIO

Struct

This input must be linked to the GVL structure containing the read registers (See Plugin installation and configuration to import the structure)

Error List

Table 49 FB_Execute_Platform_Vibration – Error List.

ID

Cause

Resolution

730

Transition error

Input that was activated is not allowed in the current state.

Only use command when you are in the correct state.

731

Modbus error

Refer to Main Modbus exception codes

732

Internal Modbus error

Refer to Holding Register: error codes

733

Warning

Refer to Asycube warnings and alarms

734

Alarms

Refer to Asycube warnings and alarms

735

Gateway disconnected from PLC

Communication problem on the EtherCAT segment

Check the cable between gateway and PLC

736

Asycube disconnected from gateway

Communication problem on the Modbus TCP segment

Check the cable between gateway and Asycube

737

Time out

Connection was lost with the Asycube

Check the cables.

Check that the Asycube is supplied.

Check the Gateway state.

738

Wrong parameter

Wrong input parameter

Correct the wrong input parameter.

739

-

N/A

-