Entering variable codes could be done via a desk or laptop PC, but a more convenient way is via a LCD display panel.

PLC - Variable Codes

Eugene Kowch | P.I.D. Consultants Inc.

Programmable Logic Controller
---- Variable Codes ----

By Eugene Kowch, P.I.D. Consultants Inc.

Entering variable codes could be done via a desk or laptop PC, but a more convenient way is via a LCD display panel.


Programming of a programmable logic controller (PLC) is done via personal computer (PC) using ladder logic. This is how hardwired inputs are connected to hardwired outputs. Most programs are customarily created to a specific application, such as a home lighting control. Once the custom program is finished, to make any changes requires the program to be revised with a PC. This is not always desirable because in most cases it requires the person who did the original program to make the changes. Now if the ladder logic was developed using variable codes, which were stored in a table, making changes to the program would not be necessary, just revising the variable codes would be required.

To see how a typical variable code program would function, let the PLC have 8 inputs and 6 outputs. The eight inputs will have eight registers reserved in the program, which will make up the table.

INPUT

REGISTER

CODE

X0

V1210

0014

X1

V1211

0026

X2

V1212

0012

X3

V1213

0021

X4

V1214

0023

X5

V1215

0015

X6

V1216

0012

X7

V1217

0003

Each variable code will consist of 4 digits. The variable code will give the program the information of what output to operate when the respective input turns on. Since the variable code has four digits, let the first three digits be the function and the last digit the output number. If the first three digits are '000'- no function, '001'- toggle function and '002'- pulse function.

CODE

F

F

F

Y

The table above shows codes programmed for each of the eight momentary inputs (X0 thru X7). When the momentary input 'X0' comes in, the output 'Y4" will turn on. When the momentary input 'X0' comes in again, 'Y0' will turn off, thus the toggle function. This is because the variable code '0014' was entered into register 'V1210'. When momentary input 'X1' comes in, the output 'Y6' will turn on for a brief duration (pulse). This is because the variable code '0026' was entered into register V1211.

Entering these variable codes could be done via a desk or laptop PC, but a more convenient way is via a LCD display panel. In the April 2003 issue of HomeToys Emagazine, there is a PLC article on a typical LCD display panel. In the commissioning of a home lighting control system, a LCD display panel makes programming an ease.


Comments (0)

This post does not have any comments. Be the first to leave a comment below.


Post A Comment

You must be logged in before you can post a comment. Login now.

Featured Product

VMP EREN-42E1K 19-inch Equipment Rack Enclosure

VMP EREN-42E1K 19-inch Equipment Rack Enclosure

Now shipping, the new 42 rack space EREN-42E1K 19-inch Equipment Rack Enclosure is newest and largest member of VMP's EREN Series. "The EREN Series has been designed for use with a multitude of security, audio, video, and communication components, and the EREN-42E1K is a sizable upgrade in both depth and weight capacity to our popular EREN-42E 19-inch equipment rack enclosure," explained Keith Fulmer, president of VMP. "The EREN-42E1K has a usable depth of 33 inches and a durable load capacity of 1,300 lbs. (a 30 percent increase from the EREN-42E) to fit just about any and every need." The cost-effective, portable, and fully welded EREN family of 19-inch equipment rack enclosures has been designed for installations where protected components are a necessity. The EREN Series, which comes complete with integrated cooling fans and lockable, removable side panels (with optional locks) allows for the organization of multiple electronic components, while at the same time protecting them from thermal issues, as well as damage or theft. Additional EREN Series specifications include: works with all standard 19-inch rack equipment and accessories; rails threaded with standard 10-32 threading; tempered glass front door; double swing steel rear door; adjustable front and rear rails; vented top and bottom; top and bottom cable routing knockouts; reversible hinged front and rear door; casters and leveling feet; ships assembled; EREN-42E1K MSRP: $1,499.00