/
PLCCodeTools™ Introduction

PLCCodeTools™ Introduction




Revisions

Revision

Date

Description

Author

0.01

 

Initial Release. Applies to Version 01.00.00

0.02Changes applied to Version 01.01.00Mark Miller

Table of Contents


Overview


Features


  • Create properties for Programmable Logic Controllers (PLCs), User Defined Types (UDTs), Tags, Tasks, Programs, Routines, and Ladder Logic Rungs.
    • Future support for properties of Functions and Complex Types
  • Support for automated generation of RSLogix 5000 L5X Source Files
    • Support for generating RSLogix UDTs, Tags, Programs, Routines, and Rungs.
    • Future support for Complex Types, and Add-On Instructions.
  • Future support for generating Siemens TIA Portal AWL source files. 

Supported Definitions


Type NameDescriptionDetails
PLCThe top-most definition type. A Programmable Logic Controller (PLC). A PLC is made up of one or more Tasks and optionally, one or more UDTs.All other definition types will be children of this "parent" type. This type will cause at least one (1) source file to be created.
UDTA User Defined Type (UDT) that contains members and member types. A UDT contains one or more UDT members.

One or more UDT definitions may be created standalone or as children of a PLC definition.

A standalone UDT or a child of one or more PLC defnitions.

This type may defined in a separate comma separated file (CSV) or in a CSV with other definition types.

TASKA Safety or Standard Task definition. A task is made up of one or more Programs.One or more Tasks may be created as children of PLC Definitions.
PROGRAMA Program definition. A Program is made up of one or more RoutinesOne or more Programs may be created as children of Tasks
ROUTINEA Routine definition. A Routine is made up of one or more RungsOne or more Routines may be created as children of Programs.
RUNGA Ladder Logic Rung definition.One or more Rungs may be created as children of Routines.
TAGA Tag Definition. A Tag is a child of either a PLC or a Program Definition.

One or more Tags may be created as children of PLCs or Programs

FUNCTIONA Function Definition. A Function is a child of a PLC Definition.Future Enhancement
INSTRUCTIONAn Instruction Definition. An instruction is a child of a Rung Definition.Future Enhancement

Definition Entries

All definition entry columns are comma separated to be compatible with Microsoft Excel or other office tools.



PLC Entry Columns


TYPEPLC NameDescription
PLCText of the Name given to the PLCThe description of the PLC. This column entry needs to be surrounded by double quote characters (")



UDT Entry Columns


TYPEPLC NameUDT NameMember NameTypeDescription
UDTOptional PLC Name. If empty, the UDT is associated with all defined PLCsThe mnemonic name of the UDT.The mnemonic name of a member of the user defined type.The member type. Supported types are SINT, INT, DINT, BOOL, REAL. This column entry needs to be enclosed by double quote characters (").The description of the member. This column entry needs to be enclosed by double quote characters (").

TAG Entry Columns


TYPEPLC NameTASK NameTASK TypePROGRAM NameTAG NameTAG DATA TypeDescription
TAGOptional PLC Name. If empty, the TAG is associated with all defined PLCsThe optional name of the PLC TASK. If empty, the TAG becomes a PLC scoped TAG. If provided, the PROGRAM Name must also be provided.Standard or Safety TAG TypeThe optional name of the Program. If the TASK name is NOT empty, the PROGRAM name must be provided and the TAG will become a PROGRAM scoped TAG.The mnemonic name of the TAG.The member type. Supported types are SINT, INT, DINT, BOOL, REAL.The description of the TAG.


TASK Entry Columns


TYPEPLC NameTask NameTypeDescription
TASKOptional PLC Name. If empty, the Task is associated with all defined PLCsThe name of the TaskStandard or Safety as the Task TypeThe description of the Task. 



PROGRAM Entry Columns


TYPEPLC NameTask NameTypeProgram NameMain Routine NameDescription
PROGRAMThe parent PLC name for the ProgramThe parent Task name for the ProgramStandard or Safety as the Task TypeThe name of the ProgramThe name of the Main Routine of the Program. The description of the Program.



ROUTINE Entry Columns


TYPEPLC NameTask NameTypeProgram NameRoutine NameDescription
ROUTINEThe parent PLC name for the RoutineThe parent Task name for the RoutineStandard or Safety as the Task TypeThe name of the parent Program of the Routine.The name of the Routine.The description of the Routine.



RUNG Entry Columns


TYPEPLC NameTask NameTypeProgram NameRoutine NameRung NumberRung TextDescription
RUNGThe parent PLC name for the RungThe parent Task name for the RungStandard or Safety as the Task TypeThe name of the parent Program of the Rung.The name of the parent Routine of the Rung.The Rung Number (Integer from 0 to n)The Text of the Rung. PLC dependent text.The description of the Rung.

Definition Files



UDT Definition File

Standalone UDT Definition File



Program Definition File




Functions



RSLogix 5000



Create L5X UDTS

This function prompts the user to select a a comma separated file to create RSLogix L5X source file(s) containing User defined Types.


Create L5X Programs

This function prompts the user to select a a comma separated file to create RSLogix L5X source file(s) containing UDTs, Programs, Routines, and Rungs.



Importing L5X UDT files

To import an RSLogix L5X UDT file:

  1. Open the PLC project using RSLogix 5000 or Studio 5000
  2. Under "Assets", right mouse click "User Data Types"
  3. Under "User Data Types", select "Import Data Type"
  4. Select the desired L5X UDT source file and open it to import.

Select Import Data Type


Select the UDT Source File



Importing L5X Program Files

To import an RSLogix L5X Program file:

  1. Open the PLC project using RSLogix 5000 or Studio 5000
  2. Under "Tasks", right mouse click the desired Standard or Safety Task.
  3. Under "Add", select "Import Program". 
  4. Select the desired L5X Program source file and open it to import.



Select Import Program for Standard Program



Select Standard Program Source File



Select Import Program for Safety Program



Select the Safety Program Source File


Successfully Imported L5X Source Files

Copyright © 2017 - 2018 Miller Software Systems, Inc. All rights reserved.