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

Page 341

Advertising
background image

Pack ML Toolbox: DataTypes

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

328

Data Type: UNitMachine_STRUCT

Contains all the information about the machine’s current state for each EM and CM

Data Type Declaration

UNitmachine_STRUCT: STRUCT

PackML_StateControlReady : BOOL;

(* Indicates when the PackML_State_Diagram function block is ready to

control the machine *)

EnabledEMs : INT;

(* Number of enabled equipment modules in the machine *)

EMs_Active : WORD;

(* Every bit in this word indicates which equipment modules are Active *)

EMs_NotDone : WORD;

(* Every bit in this word indicates which equipment modules are Not Done*)

EM_InactiveMask : WORD;

(* Every bit in this word indicates which equipment modules are Inactive *)

EM : EquipmentModule_ARRAY;

(* Array containing the Commands, Status and Active bits for the 16 Equipment

Modules contained in the Machine*)

Sts_Resetting_SC : BOOL;

(* When set, the machine is in the resetting state *)

Sts_Starting_SC : BOOL;

(* When set, the machine is in the Starting state *)

Sts_Stopping_SC : BOOL;

(* When set, the machine is in the Stopping state *)

Sts_Holding_SC : BOOL;

(* When set, the machine is in the Holding state *)

Sts_UnHolding_SC : BOOL;

(* When set, the machine is in the UnHolding state *)

Sts_Suspending_SC : BOOL;

(* When set, the machine is in the Suspending state *)

Sts_UnSuspending_SC : BOOL;

(*When set, the machine is in the UnSuspending state*)

Sts_Aborting_SC : BOOL;

(* When set, the machine is in the Aborting state *)

Sts_Clearing_SC : BOOL;

(* When set, the machine is in the Clearing state *)

Sts_Executing_SC : BOOL;

(* When set, the machine is in the Executing state *)

Sts_Completing_SC : BOOL;

(* When set, the machine is in the Completing state *)

END_STRUCT;

Advertising