FOLLOW_AXIS_CRANK_DRIVE_EMULATION (FB)

The function block 'FOLLOW_AXIS_CRANK_DRIVE_EMULATION' emulates a crank gearing drive.

The function block provides a way-way-function with standstill area. It can be used for example in film transport and cut with stationary blade.

By means of an offset at the start of the movement, the curve can be synchronised to an external starting point.

 

 

The function block is called in the asynchronous program level PLC_PRG.

Setpoints and current values are transferred in a synchronous action. The synchronous action must be called in the synchronous program level FPLC_PRG.

User interface
   

FOLLOW_AXIS_CRANK_DRIVE_EMULATION

   

FB enable

-

boEnable

boEnabAck

-

Ackn. "FB enable"

Start crank drive

-

boControl

boCamEnabAck

-

Ackn. crank drive active

Input value

-

diInVal

boInAck

-

End of engage table

calculation mode

-

enShape

boOpAck

-

End of work table

     

boOutAck

-

End of disengage table

     

boErr

-

Error

 

 

 

iErrID

-

Error ID

 

 

actSync

   

Start offset

-

diOffSet

diOutVal

-

Output value

standstill range

-

diStillStand

 

 

 

increments per rotation

-

diMasterInc

 

 

 

Input variables of the asynchronous part of the program (PLC_PRG)

Name

Type

Description

boEnable

BOOL

Enable signal: With a positive edge, the initialisation of the block starts.

As long as 'boEnable' = TRUE, the block remains enabled and is processed by the PLC.

In the state 'boEnable' = FALSE the block is no longer enabled and is thus no longer processed.

boControl

BOOL

Start / Stop of the crank drive function

diInVal

DINT

Input value pulses [increments]

enShape

ENUM

EN_CRANK_DRIVE_SHAPE

Shape of crank drive curve

enCrankShapeLinear

linear 45° straight line

enCrankShapeSine

SINUS - function

enCrankShapeSquareSine

SINUS2 - function
Input variables of the synchronous part of the program (FPLC_PRG)

Name

Type

Description

diOffSet

DINT

Offset at the start of the first revolution. [Inkr]

The offset moves the movement function to the back.

diStillStand

DINT

Stability range at the end of the revolutions [incr]

diMasterInc

DINT

Number of increments per revolution (without start - offset) [incr.]

Output variables of the asynchronous part of the program (PLC_PRG)

Name

Type

Description

boEnabAck

BOOL

Acknowledgement: Function block is initialised and enabled

boCamEnabAck

BOOL

Acknowledgement: Cranc drive active

boInAck

BOOL

Acknowledge end of phasing in table

Pulse at end of phasing in table; 'boInAck' = TRUE for 2 sampling time points

boOpAck

BOOL

Acknowledge end of operating table

Pulse at end of operating table; 'boOpAck' = TRUE for 2 sampling time points

boOutAck

BOOL

Acknowledge end of phasing out table

Pulse at end of phasing out table; 'boOutAck' = TRUE for 2 sampling time points

boErr

BOOL

The function block is in an error state

FALSE

No error (permitted commanding or warning)

TRUE

Error

iErrID

INT

Error identity number: Diagnostic number is output

iErrID = 0

No error

iErrID ≠ 0

boErr = TRUE

Error

iErrID ≠ 0

boErr = FALSE

Warning

1 - 99 Error code according to 'CAM_PROF' (AmkBase.lib)
100 Incorrect value in variable 'enShape'
101 Parameter 'diMasterInc' ≤ 0
102

Parameter 'diStillStand' to large

('diStillStand' ≤ 'diMasterInc' / 2)

103 Parameter 'diOffSet' < 0
Output variables of the synchronous part of the program (FPLC_PRG)

Name

Type

Description

diOutVal

DINT

Output value - impuls [Incr]

(can, for example, be issued with 'SET_VAL_I' to the drive)

Usage note in the CoDeSys program
PLC_PRG (asynchronous part of the programm) FPLC_PRG (synchronous part of the programm)
FOLLOW_AXIS_CRANK_DRIVE_EMULATION FOLLOW_AXIS_CRANK_DRIVE_EMULATION.actSync

 

Associated with this function block, a visualisation is prepared in CoDeSys.

Siehe 'Visualization of AFL blocks'.