Warning

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

Add-on instructions description

AO_Execute_Sequence

Inputs and Outputs description

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

../../../_images/AO_Execute_sequence.png

Fig. 188 AO_Execute_Sequence

Table 49 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

boGatewayConnectionFaultPIN

Boolean

Connection fault status of the gateway.

Table 50 Outputs

Variable

Type

Description

inStatePOU

Integer

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

diRemainingTimePOU

Double Integer

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 51 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Integer[0..33]

This input must be linked to the GVL structure containing the write registers

(See Plugin installation and configuration to import the structure)

regAsycubeReadPIO

Integer[0..33]

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 52 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 Ethernet/IP 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

-

AO_Execute_Platform_Vibration

This Add-On instruction is used to execute a single platform vibration. Standard vibration or centering vibration can be triggered using this instruction.

Inputs and Outputs description

../../../_images/AO_Execute_platform_vibration.png

Fig. 189 AO_Execute_Platform_Vibration

Table 53 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.

diDurationPIN

Double Integer

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

boGatewayConnectionFaultPIN

Boolean

Connection fault status of the gateway

Table 54 Outputs

Variable

Type

Description

inStatePOU

Integer

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

boDonePOU

Boolean

A rising edge indicates the end of the sequence

diRemainingTimePOU

Double Integer

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 55 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Integer[0..33]

This input must be linked to the GVL structure containing the write registers

(See Plugin installation and configuration to import the structure)

regAsycubeReadPIO

Integer[0..33]

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 56 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 Ethernet/IP 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

-

AO_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/AO_Execute_hopper_vibration.png

Fig. 190 AO_Execute_Hopper_Vibration

Table 57 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.

diDurationPIN

Double Integer

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

boGatewayConnectionFaultPIN

Boolean

Connection fault status of the gateway

Table 58 Outputs

Variable

Type

Description

inStatePOU

Integer

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

boDonePOU

Boolean

A rising edge indicates the end of the vibration.

diRemainingTimePOU

Double Integer

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 59 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Integer[0..33]

This input must be linked to the GVL structure containing the write registers

(See Plugin installation and configuration to import the structure)

regAsycubeReadPIO

Integer[0..33]

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 60 AO_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 Ethernet/IP 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 Add-On instruction is used to control the backlight. Backlight can be controlled in continuous or in flash mode.

Inputs and Outputs description

../../../_images/AO_Backlight.png

Fig. 191 AO_Backlight

Table 61 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.

diDurationPIN

Double Integer

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

boGatewayConnectionFaultPIN

Boolean

Connection fault status of the gateway.

Table 62 Outputs

Variable

Type

Description

inStatePOU

Word

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

tiRemainingTimePOU

Double Integer

Remaining time of backlight. If tiDurationPIN ≠ 0.

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 63 Inputs/Outputs

Variable

Type

Description

regAsycubeWritePIO

Integer[0..33]

This input must be linked to the GVL structure containing the write registers

(See Plugin installation and configuration to import the structure)

regAsycubeReadPIO

Integer[0..33]

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 64 AO_Backlight - 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 Ethernet/IP 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.

739

-

N/A

-