Warning

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

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_cc.png

Fig. 143 FB_Execute_Sequence

Table 13 Inputs

Variable

Type

Description

boStartPIN

Bit

A rising edge starts the sequence.

boStopPIN

Bit

A rising edge stops the sequence.

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

inSeqIDPIN

Word [Signed]

Vibration recipe ID (1..26)

inVibrationSetPIN

Word [Signed]

Vibration recipe ID (1..26)

inNbPartsPIN

Word [Signed]

Number of remaining parts currently on the Asycube.

inNbPartsMaxPIN

Word [Signed]

Desired number of parts that you want on the Asycube.

inXPosPIN

Word [Signed]

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

Word [Signed]

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

Bit

Turns ON and OFF the backlight

boConnectionFaultedSB

Bit

SB type variable. Must be connected to SB006B

Table 14 Outputs

Variable

Type

Description

inStatePOU

Word [Signed]

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

boDonePOU

Bit

A rising edge indicates the end of the sequence

boBacklightStatePOU

Bit

State: TRUE = backlight ON, FALSE = Backlight OFF

tiRemainingTimePOU

Time

Remaining time of the sequence

boErrorPOU

Bit

Goes to TRUE if an error occurred on the block

inErrorIDPOU

Word [Signed]

Error ID (See Error List)

stErrorNamePOU

String

Error Description (See Error List)

Table 15 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Structure

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

regAsycubeReadPIO

Structure

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 16 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 CC-LINK 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.png

Fig. 144 FB_Execute_Platform_Vibration

Table 17 Inputs

Variable

Type

Description

inSelectModePIN

Word [Signed]

Mode: 0 = Standard Vibration, 1 = Centering vibration

boStartPIN

Bit

A rising edge starts the vibration.

boStopPIN

Bit

A rising edge stops the vibration.

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

inVibrationIDPIN

Word [Signed]

Vibration ID (1..26)

inVibrationSetPIN

Word [Signed]

Vibration Recipe ID (1..26)

inXPosPIN

Word [Signed]

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

Word [Signed]

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

boConnectionFaultedSB

Bit

SB type variable. Must be connected to SB006B

Table 18 Outputs

Variable

Type

Description

inStatePOU

Word [Signed]

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

boDonePOU

Bit

A rising edge indicates the end of the sequence

tiRemainingTimePOU

Time

Remaining time of the vibration

boErrorPOU

Bit

Goes to TRUE if an error occurred on the block

inErrorIDPOU

Word [Signed]

Error ID (See Error List)

stErrorNamePOU

String

Error Description (See Error List)

Table 19 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Structure

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

regAsycubeReadPIO

Structure

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

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.png

Fig. 145 FB_Execute_Hopper_Vibration

Table 21 Inputs

Variable

Type

Description

inSelectModePIN

Word [Signed]

Mode: 0 = Standard Vibration, 1 = Centering vibration

boStartPIN

Bit

A rising edge starts the vibration.

boStopPIN

Bit

A rising edge stops the vibration.

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

inVibrationIDPIN

Word [Signed]

Vibration ID (1..26)

inVibrationSetPIN

Word [Signed]

Vibration Recipe (1..26)

inNbPartsPIN

Word [Signed]

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

inNbPartsMaxPIN

Word [Signed]

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

boConnectionFaultedSB

Bit

SB type variable. Must be connected to SB006B

Table 22 Outputs

Variable

Type

Description

inStatePOU

Word [Signed]

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

boDonePOU

Bit

A rising edge indicates the end of the sequence

tiRemainingTimePOU

Time

Remaining time of the vibration

boErrorPOU

Bit

Goes to TRUE if an error occurred on the block

inErrorIDPOU

Word [Signed]

Error ID (See Error List)

stErrorNamePOU

String

Error Description (See Error List)

Table 23 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Structure

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

regAsycubeReadPIO

Structure

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

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.png

Fig. 146 FB_Backlight

Table 25 Inputs

Variable

Type

Description

boLightONPIN

Bit

A rising edge turns ON the backlight

boLightOFFPIN

Bit

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.

boConnectionFaultedSB

Bit

SB type variable. Must be connected to SB006B

Table 26 Outputs

Variable

Type

Description

inStatePOU

Word [Signed]

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

tiRemainingTimePOU

Time

Remaining time of backlight. If tiDurationPIN ≠ 0.

boErrorPOU

Bit

Goes to TRUE if an error occurred on the block

inErrorIDPOU

Word [Signed]

Error ID (See Error List)

stErrorNamePOU

String

Error Description (See Error List)

Table 27 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Structure

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

regAsycubeReadPIO

Structure

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