beautypg.com

Data type: camstruct, Data type declaration, Camstruct – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 75

background image

Cam Toolbox: DataTypes

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

62

Data Type: CamStruct

For use with Y_CamIn and Y_CamOut function blocks

Data Type Declaration

TYPE

CamStruct: STRUCT

FileName:STRING;

(* Filename that will be used by Y_CamFileSelect *)

TableType:INT;

(* 0=Undefined, 1=M/S pair, 2=reserved, 3=reserved *)

TableSize:UDINT;

(* The size of the cam table in bytes (Don't forget, 16 bytes per M/S pair) *)

TableID:UINT;

(* Number returned from Y_CamFileSelect *)

EngagePosition:LREAL;

(* Master location where slave must start synchronization

(Reference prm 1502 - CamMasterShiftedCyclic *)

EngageData:Y_ENGAGE_DATA;

DisengagePosition:LREAL;

(* Master location where slave must stop synchronization

(Reference prm 1502 - CamMasterShiftedCyclic *)

DisengageData:Y_DISENGAGE_DATA;

Window:LREAL;

(* Size of the window in master units where the engage or disengage

will take place *)

MasterCycle:LREAL;

SlaveCycle:LREAL;

END_STRUCT;

END_TYPE