PLCCodeTools™ Introduction
Revisions
Revision | Date | Description | Author |
---|---|---|---|
0.01 |
| Initial Release. Applies to Version 01.00.00 | |
0.02 | Changes applied to Version 01.01.00 | Mark Miller |
Table of Contents
Supported Definitions
Type Name | Description | Details |
---|---|---|
PLC | The 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. |
UDT | A 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.
|
TASK | A 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. |
PROGRAM | A Program definition. A Program is made up of one or more Routines | One or more Programs may be created as children of Tasks |
ROUTINE | A Routine definition. A Routine is made up of one or more Rungs | One or more Routines may be created as children of Programs. |
RUNG | A Ladder Logic Rung definition. | One or more Rungs may be created as children of Routines. |
TAG | A 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 |
FUNCTION | A Function Definition. A Function is a child of a PLC Definition. | Future Enhancement |
INSTRUCTION | An 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
TYPE | PLC Name | Description |
---|---|---|
PLC | Text of the Name given to the PLC | The description of the PLC. This column entry needs to be surrounded by double quote characters (") |
UDT Entry Columns
TYPE | PLC Name | UDT Name | Member Name | Type | Description |
---|---|---|---|---|---|
UDT | Optional PLC Name. If empty, the UDT is associated with all defined PLCs | The 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
TYPE | PLC Name | TASK Name | TASK Type | PROGRAM Name | TAG Name | TAG DATA Type | Description |
---|---|---|---|---|---|---|---|
TAG | Optional PLC Name. If empty, the TAG is associated with all defined PLCs | The 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 Type | The 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
TYPE | PLC Name | Task Name | Type | Description |
---|---|---|---|---|
TASK | Optional PLC Name. If empty, the Task is associated with all defined PLCs | The name of the Task | Standard or Safety as the Task Type | The description of the Task. |
PROGRAM Entry Columns
TYPE | PLC Name | Task Name | Type | Program Name | Main Routine Name | Description |
---|---|---|---|---|---|---|
PROGRAM | The parent PLC name for the Program | The parent Task name for the Program | Standard or Safety as the Task Type | The name of the Program | The name of the Main Routine of the Program. | The description of the Program. |
ROUTINE Entry Columns
TYPE | PLC Name | Task Name | Type | Program Name | Routine Name | Description |
---|---|---|---|---|---|---|
ROUTINE | The parent PLC name for the Routine | The parent Task name for the Routine | Standard or Safety as the Task Type | The name of the parent Program of the Routine. | The name of the Routine. | The description of the Routine. |
RUNG Entry Columns
TYPE | PLC Name | Task Name | Type | Program Name | Routine Name | Rung Number | Rung Text | Description |
---|---|---|---|---|---|---|---|---|
RUNG | The parent PLC name for the Rung | The parent Task name for the Rung | Standard or Safety as the Task Type | The 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
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:
- Open the PLC project using RSLogix 5000 or Studio 5000
- Under "Assets", right mouse click "User Data Types"
- Under "User Data Types", select "Import Data Type"
- 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:
- Open the PLC project using RSLogix 5000 or Studio 5000
- Under "Tasks", right mouse click the desired Standard or Safety Task.
- Under "Add", select "Import Program".
- 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.