Class PlcPgm
Version 1.0
Modified 08-MAR-2026 11:05:32.00
 Configures a PLC program.

 The name of the PlcPgm object is used to identify a
 certain editing unit.

 The object represents both data and code.
 Put the object below a $PlantHier object in the
 development environment by means of the Configuration
 Editor. The PLC program will execute in a node
 specified by a $PlantHier object.

 Below the PlcPgm object is a WindowPlc object created.
 This object becomes the parent object
 to the objects in the PLC program.
 Different PlcPgm objects with the same ScanTime will
 execute in one and the same PLC- subprocess. Up to 15
 PLC-subprocesses can be included in a PLC job.

 Note! The PLC subprocess with the shortest ScanTime, i.e.
 with the highest frequency, is named the base frequency
 subprocess and handles the I/O-software of Di-, Do-,
 Dv- and Co- signals on buss-connected cards as well.
 The other subprocesses are named partial frequency
 subprocesses.
 This means, if there is no need for any true PlcPgm,
 but Di-, Do-, Dv- and Co-signals have to be handled by
 the I/O-software --- that a dummy PlcPgm must be
 created.

 If any attribute in the PlcPgm object is changed it is
 necessary to 'compile' the PLC program.

RtBody attributes pwr_sClass_plc
String104 Description   Optional the text to describe the program.
Objid ThreadObject  
AttrRef HostObject   Used by the code generator.
ConfigStatusEnum ConfigurationStatus   Configuration status.
SafetyLevelEnum SafetyLevel   Safety level.

DevBody attributes 
Float32 ScanTime ScanTim
AttrRef ResetObject ResObj Specifies the complete name of a Di, Dv or Do object
which will be used as the reset signal of the Grafcet
chains identified by the PlcPgm object.
If there is no need to reset a Grafcet chain or if the
PlcPgm object does not contain any Grafcet chain the
attribute is left blank.
Int32 ExecuteOrder ExecOrd Control the execution order of different PlcPgms
in the same thread.
Lower values of ExecuteOrder will be executed before
higher.
PlcProgram PlcProgram  


Attributes detail


Description Intern
Class Intern
Type String104
Flags
Body RtBody
 Optional the text to describe the program.

ThreadObject Intern
Class Intern
Type Objid
Flags
Body RtBody

HostObject Intern
Class Intern
Type AttrRef
Flags INVISIBLE
Body RtBody
 Used by the code generator.

ConfigurationStatus Intern
Class Intern
Type ConfigStatusEnum
Flags
Body RtBody
 Configuration status.
 Status in the development environment for an hierarchy,
 plcprogram or process graph, set by the designer to indicate
 the current state. If a status is set for an object, it is
 marked red, yellow or green in the configurator. Also the
 status text if viewed surrounded by angel brackets.

SafetyLevel Intern
Class Intern
Type SafetyLevelEnum
Flags
Body RtBody
 Safety level.
 Safety level in the development environment for an hierarchy,
 plcprogram or process graph, set by the designer to indicate
 the level. If a level is set for an object, it is marked with
 a warning trangle.

ScanTime Intern
Class Intern
Type Float32
Flags INVISIBLE
GraphName ScanTim
Body DevBody

ResetObject Intern
Class Intern
Type AttrRef
Flags
GraphName ResObj
Body DevBody
 Specifies the complete name of a Di, Dv or Do object
 which will be used as the reset signal of the Grafcet
 chains identified by the PlcPgm object.
 If there is no need to reset a Grafcet chain or if the
 PlcPgm object does not contain any Grafcet chain the
 attribute is left blank.

ExecuteOrder Intern
Class Intern
Type Int32
Flags
GraphName ExecOrd
Body DevBody
 Control the execution order of different PlcPgms
 in the same thread.
 Lower values of ExecuteOrder will be executed before
 higher.

PlcProgram Buffer
Class Buffer
Type PlcProgram
Flags INVISIBLE
Body DevBody