Skip to main content

Cam switch

With this library, different cams can be used, such as timed cams or cams with a defined switch-on and switch-off time.

TB_CamSwitch

TB_CamSwitch

This module can create a cam with which an event is triggered at a cam position. The cam can be pre-controlled for time to compensate for dead times.

In conjunction with the TB_MasterEngine function module, the dead time compensation can also be calculated exactly during the acceleration and braking phases. When using a real axis, only one velocity compensation can be used.

Empfohlene Task: Event

Eingänge

Marking:Data type:Default:Data range:Description:
x_EnableBOOL......TRUE: Enabling of the module. Control is active.
FALSE: Module is deactivated; the outputs are set to FALSE.
x_StartBOOL......TRUE: Start of cam generation. With the positive edge, the position di_Pos is set to the position di_StartPos.
x_ReadyBOOL......TRUE: Actuator is ready. If a cam is to be output (x_CamOut = TRUE), the input must be TRUE. Otherwise, an error is output.
di_VelDINT......Actual velocity of the encoder in user units/Ts.
di_StartPosDINT......Start or reference position of the encoder. If x_Start = TRUE, x_Pos is set to this position.
di_CamPosDINT......Position of the encoder at which the cam is to take effect. This position minus the path ud_Travel, which is traversed during the dead time, yields the position at which the cam switches.
di_PeriodDINT......Period of the position in user units. Whenever the cam switches, the position di_Pos is reset by di_Period.
u_Delay_msDINT......Dead time in ms. All deceleration times of the system are combined here. Maximum times up to 5,000 ms are possible. If a larger value is connected, it is limited to 5,000 ms internally.
ud_TimeAcc_msDINT......Remaining acceleration time in ms from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelSet_sDINT......Setpoint velocity in user units/s from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelAct_sDINT......Actual velocity in user units/s. This value must be connected for the dead time compensation. The actual velocity is either from a real master or a virtual master (TB_MasterEngine function module).

Ausgänge

Marking:Data type:Description:
x_ActiveBOOLTRUE: Module is active.
x_RunningBOOLTRUE: Cam calculation is active.
x_Running is FALSE if x_Start = FALSE and the cam position of the last cam has been reached.
This output can be used to determine whether all cams to be processed are ready.
To stop a process, x_Start is set to FALSE. If all cams are processed, x_Running is FALSE. The axis can now be stopped.
x_CamOutBOOLCam output. x_Running is TRUE for one cycle.
di_PosDINTPosition of the encoder in user units.
ud_TravelUDINTPath of the encoder during the deceleration time di_Delay_ms. This path depends on the velocity of the encoder and is recalculated cyclically.
x_ErrorBOOLTRUE: Error detected.
i_ErrorINTError number of the module. See error table.

Ein-/Ausgänge

none
Representation in FBD

TB_CamSwitch

TB_CamSwitch

This module can create a cam with which an event is triggered at a cam position. The cam can be pre-controlled for time to compensate for dead times.

In conjunction with the TB_MasterEngine function module, the dead time compensation can also be calculated exactly during the acceleration and braking phases. When using a real axis, only one velocity compensation can be used.

Empfohlene Task: Event

Eingänge

Marking:Data type:Default:Data range:Description:
x_EnableBOOL......TRUE: Enabling of the module. Control is active.
FALSE: Module is deactivated; the outputs are set to FALSE.
x_StartBOOL......TRUE: Start of cam generation. With the positive edge, the position di_Pos is set to the position di_StartPos.
x_ReadyBOOL......TRUE: Actuator is ready. If a cam is to be output (x_CamOut = TRUE), the input must be TRUE. Otherwise, an error is output.
di_VelDINT......Actual velocity of the encoder in user units/Ts.
di_StartPosDINT......Start or reference position of the encoder. If x_Start = TRUE, x_Pos is set to this position.
di_CamPosDINT......Position of the encoder at which the cam is to take effect. This position minus the path ud_Travel, which is traversed during the dead time, yields the position at which the cam switches.
di_PeriodDINT......Period of the position in user units. Whenever the cam switches, the position di_Pos is reset by di_Period.
u_Delay_msDINT......Dead time in ms. All deceleration times of the system are combined here. Maximum times up to 5,000 ms are possible. If a larger value is connected, it is limited to 5,000 ms internally.
ud_TimeAcc_msDINT......Remaining acceleration time in ms from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelSet_sDINT......Setpoint velocity in user units/s from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelAct_sDINT......Actual velocity in user units/s. This value must be connected for the dead time compensation. The actual velocity is either from a real master or a virtual master (TB_MasterEngine function module).

Ausgänge

Marking:Data type:Description:
x_ActiveBOOLTRUE: Module is active.
x_RunningBOOLTRUE: Cam calculation is active.
x_Running is FALSE if x_Start = FALSE and the cam position of the last cam has been reached.
This output can be used to determine whether all cams to be processed are ready.
To stop a process, x_Start is set to FALSE. If all cams are processed, x_Running is FALSE. The axis can now be stopped.
x_CamOutBOOLCam output. x_Running is TRUE for one cycle.
di_PosDINTPosition of the encoder in user units.
ud_TravelUDINTPath of the encoder during the deceleration time di_Delay_ms. This path depends on the velocity of the encoder and is recalculated cyclically.
x_ErrorBOOLTRUE: Error detected.
i_ErrorINTError number of the module. See error table.

Ein-/Ausgänge

none
Representation in FBD

TB_Channel

TB_Channel

This module can create a cam with which an event is triggered at a cam position. The cam can be pre-controlled for time to compensate for dead times.

In conjunction with the TB_MasterEngine function module, the dead time compensation can also be calculated exactly during the acceleration and braking phases. When using a real axis, only one velocity compensation can be used.

Empfohlene Task: Event

Zusätzliche Datentypen: ....todo

Verwendet Static-Variablen: ....todo

Eingänge

Marking:Data type:Default:Data range:Description:
x_EnableBOOL......TRUE: Enabling of the module. Control is active.
FALSE: Module is deactivated; the outputs are set to FALSE.
x_StartBOOL......TRUE: Start of cam generation. With the positive edge, the position di_Pos is set to the position di_StartPos.
x_ReadyBOOL......TRUE: Actuator is ready. If a cam is to be output (x_CamOut = TRUE), the input must be TRUE. Otherwise, an error is output.
di_VelDINT......Actual velocity of the encoder in user units/Ts.
di_StartPosDINT......Start or reference position of the encoder. If x_Start = TRUE, x_Pos is set to this position.
di_CamPosDINT......Position of the encoder at which the cam is to take effect. This position minus the path ud_Travel, which is traversed during the dead time, yields the position at which the cam switches.
di_PeriodDINT......Period of the position in user units. Whenever the cam switches, the position di_Pos is reset by di_Period.
u_Delay_msDINT......Dead time in ms. All deceleration times of the system are combined here. Maximum times up to 5,000 ms are possible. If a larger value is connected, it is limited to 5,000 ms internally.
ud_TimeAcc_msDINT......Remaining acceleration time in ms from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelSet_sDINT......Setpoint velocity in user units/s from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelAct_sDINT......Actual velocity in user units/s. This value must be connected for the dead time compensation. The actual velocity is either from a real master or a virtual master (TB_MasterEngine function module).

Ausgänge

Marking:Data type:Description:
x_ActiveBOOLTRUE: Module is active.
x_RunningBOOLTRUE: Cam calculation is active.
x_Running is FALSE if x_Start = FALSE and the cam position of the last cam has been reached.
This output can be used to determine whether all cams to be processed are ready.
To stop a process, x_Start is set to FALSE. If all cams are processed, x_Running is FALSE. The axis can now be stopped.
x_CamOutBOOLCam output. x_Running is TRUE for one cycle.
di_PosDINTPosition of the encoder in user units.
ud_TravelUDINTPath of the encoder during the deceleration time di_Delay_ms. This path depends on the velocity of the encoder and is recalculated cyclically.
x_ErrorBOOLTRUE: Error detected.
i_ErrorINTError number of the module. See error table.

Ein-/Ausgänge

none
Representation in FBD

TB_Channel

TB_Channel

This module can create a cam with which an event is triggered at a cam position. The cam can be pre-controlled for time to compensate for dead times.

In conjunction with the TB_MasterEngine function module, the dead time compensation can also be calculated exactly during the acceleration and braking phases. When using a real axis, only one velocity compensation can be used.

Empfohlene Task: Event

Zusätzliche Datentypen: ....todo

Verwendet Static-Variablen: ....todo

Eingänge

Marking:Data type:Default:Data range:Description:
x_EnableBOOL......TRUE: Enabling of the module. Control is active.
FALSE: Module is deactivated; the outputs are set to FALSE.
x_StartBOOL......TRUE: Start of cam generation. With the positive edge, the position di_Pos is set to the position di_StartPos.
x_ReadyBOOL......TRUE: Actuator is ready. If a cam is to be output (x_CamOut = TRUE), the input must be TRUE. Otherwise, an error is output.
di_VelDINT......Actual velocity of the encoder in user units/Ts.
di_StartPosDINT......Start or reference position of the encoder. If x_Start = TRUE, x_Pos is set to this position.
di_CamPosDINT......Position of the encoder at which the cam is to take effect. This position minus the path ud_Travel, which is traversed during the dead time, yields the position at which the cam switches.
di_PeriodDINT......Period of the position in user units. Whenever the cam switches, the position di_Pos is reset by di_Period.
u_Delay_msDINT......Dead time in ms. All deceleration times of the system are combined here. Maximum times up to 5,000 ms are possible. If a larger value is connected, it is limited to 5,000 ms internally.
ud_TimeAcc_msDINT......Remaining acceleration time in ms from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelSet_sDINT......Setpoint velocity in user units/s from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelAct_sDINT......Actual velocity in user units/s. This value must be connected for the dead time compensation. The actual velocity is either from a real master or a virtual master (TB_MasterEngine function module).

Ausgänge

Marking:Data type:Description:
x_ActiveBOOLTRUE: Module is active.
x_RunningBOOLTRUE: Cam calculation is active.
x_Running is FALSE if x_Start = FALSE and the cam position of the last cam has been reached.
This output can be used to determine whether all cams to be processed are ready.
To stop a process, x_Start is set to FALSE. If all cams are processed, x_Running is FALSE. The axis can now be stopped.
x_CamOutBOOLCam output. x_Running is TRUE for one cycle.
di_PosDINTPosition of the encoder in user units.
ud_TravelUDINTPath of the encoder during the deceleration time di_Delay_ms. This path depends on the velocity of the encoder and is recalculated cyclically.
x_ErrorBOOLTRUE: Error detected.
i_ErrorINTError number of the module. See error table.

Ein-/Ausgänge

none
Representation in FBD

TB_ChannelTime

TB_ChannelTime

This module can create a cam with which an event is triggered at a cam position. The cam can be pre-controlled for time to compensate for dead times.

In conjunction with the TB_MasterEngine function module, the dead time compensation can also be calculated exactly during the acceleration and braking phases. When using a real axis, only one velocity compensation can be used.

Empfohlene Task: Event

Zusätzliche Datentypen: ....todo

Verwendet Static-Variablen: ....todo

Eingänge

Marking:Data type:Default:Data range:Description:
x_EnableBOOL......TRUE: Enabling of the module. Control is active.
FALSE: Module is deactivated; the outputs are set to FALSE.
x_StartBOOL......TRUE: Start of cam generation. With the positive edge, the position di_Pos is set to the position di_StartPos.
x_ReadyBOOL......TRUE: Actuator is ready. If a cam is to be output (x_CamOut = TRUE), the input must be TRUE. Otherwise, an error is output.
di_VelDINT......Actual velocity of the encoder in user units/Ts.
di_StartPosDINT......Start or reference position of the encoder. If x_Start = TRUE, x_Pos is set to this position.
di_CamPosDINT......Position of the encoder at which the cam is to take effect. This position minus the path ud_Travel, which is traversed during the dead time, yields the position at which the cam switches.
di_PeriodDINT......Period of the position in user units. Whenever the cam switches, the position di_Pos is reset by di_Period.
u_Delay_msDINT......Dead time in ms. All deceleration times of the system are combined here. Maximum times up to 5,000 ms are possible. If a larger value is connected, it is limited to 5,000 ms internally.
ud_TimeAcc_msDINT......Remaining acceleration time in ms from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelSet_sDINT......Setpoint velocity in user units/s from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelAct_sDINT......Actual velocity in user units/s. This value must be connected for the dead time compensation. The actual velocity is either from a real master or a virtual master (TB_MasterEngine function module).

Ausgänge

Marking:Data type:Description:
x_ActiveBOOLTRUE: Module is active.
x_RunningBOOLTRUE: Cam calculation is active.
x_Running is FALSE if x_Start = FALSE and the cam position of the last cam has been reached.
This output can be used to determine whether all cams to be processed are ready.
To stop a process, x_Start is set to FALSE. If all cams are processed, x_Running is FALSE. The axis can now be stopped.
x_CamOutBOOLCam output. x_Running is TRUE for one cycle.
di_PosDINTPosition of the encoder in user units.
ud_TravelUDINTPath of the encoder during the deceleration time di_Delay_ms. This path depends on the velocity of the encoder and is recalculated cyclically.
x_ErrorBOOLTRUE: Error detected.
i_ErrorINTError number of the module. See error table.

Ein-/Ausgänge

none
Representation in FBD

TB_ChannelTime

TB_ChannelTime

This module can create a cam with which an event is triggered at a cam position. The cam can be pre-controlled for time to compensate for dead times.

In conjunction with the TB_MasterEngine function module, the dead time compensation can also be calculated exactly during the acceleration and braking phases. When using a real axis, only one velocity compensation can be used.

Empfohlene Task: Event

Zusätzliche Datentypen: ....todo

Verwendet Static-Variablen: ....todo

Eingänge

Marking:Data type:Default:Data range:Description:
x_EnableBOOL......TRUE: Enabling of the module. Control is active.
FALSE: Module is deactivated; the outputs are set to FALSE.
x_StartBOOL......TRUE: Start of cam generation. With the positive edge, the position di_Pos is set to the position di_StartPos.
x_ReadyBOOL......TRUE: Actuator is ready. If a cam is to be output (x_CamOut = TRUE), the input must be TRUE. Otherwise, an error is output.
di_VelDINT......Actual velocity of the encoder in user units/Ts.
di_StartPosDINT......Start or reference position of the encoder. If x_Start = TRUE, x_Pos is set to this position.
di_CamPosDINT......Position of the encoder at which the cam is to take effect. This position minus the path ud_Travel, which is traversed during the dead time, yields the position at which the cam switches.
di_PeriodDINT......Period of the position in user units. Whenever the cam switches, the position di_Pos is reset by di_Period.
u_Delay_msDINT......Dead time in ms. All deceleration times of the system are combined here. Maximum times up to 5,000 ms are possible. If a larger value is connected, it is limited to 5,000 ms internally.
ud_TimeAcc_msDINT......Remaining acceleration time in ms from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelSet_sDINT......Setpoint velocity in user units/s from the TB_MasterEngine module when using the virtual master. Otherwise, leave open.
di_VelAct_sDINT......Actual velocity in user units/s. This value must be connected for the dead time compensation. The actual velocity is either from a real master or a virtual master (TB_MasterEngine function module).

Ausgänge

Marking:Data type:Description:
x_ActiveBOOLTRUE: Module is active.
x_RunningBOOLTRUE: Cam calculation is active.
x_Running is FALSE if x_Start = FALSE and the cam position of the last cam has been reached.
This output can be used to determine whether all cams to be processed are ready.
To stop a process, x_Start is set to FALSE. If all cams are processed, x_Running is FALSE. The axis can now be stopped.
x_CamOutBOOLCam output. x_Running is TRUE for one cycle.
di_PosDINTPosition of the encoder in user units.
ud_TravelUDINTPath of the encoder during the deceleration time di_Delay_ms. This path depends on the velocity of the encoder and is recalculated cyclically.
x_ErrorBOOLTRUE: Error detected.
i_ErrorINTError number of the module. See error table.

Ein-/Ausgänge

none
Representation in FBD