Lab PLC
Lab PLC
Lab PLC
For the proper work of PLC device it’s necessary to put in his
memory a program on which it will work. It can be accomplished in
several ways, and one, that I used, is to use personal computer for
downloading program into PLC. This is of course possible if PC has
installed proper software and in further reading I will explain how to use
software that I made. Application is created using programming language
Visual Basic 1.0 for DOS. It’s been realized to maximally simplify
functions entering by only selecting them and not entering logic
functions, inputs, outputs or memory markers by writing names from
keyboard. Next table shows codes of logic functions, inputs, outputs and
memory markers. Of course, this codes are completely useless for user,
but they could be useful for future upgrades or if someone would wish to
make other versions of this software (Windows version for example).
FUNCTION SHORTCUT
NEW Ctrl+N
LOAD F3
SAVE F2
EXIT Ctrl+X
COMPILE F7
NEXT F6
PREVIOUS F5
TRANSFER F9
DELETE F8
Table2. Shortcut codes
It is very easy to use LabPLC. When you turn on switch PR1 you
are connecting 24V power supply to PLC and LED L1 (POWER ON)
goes on. I used 24V because it is a standard for industrial voltage levels
for supply and for control signals. At the same time LED L2 starts to
blink and that signifies that PLC is READY for data transmission.
Transmission between PC and PLC goes with a speed of 4800 bits per
second with 8 data bits, none parity and 1 stop bit. When transfer ends,
L2 goes off and L11 (READY) starts to shine. From that moment PLC
starts cyclical program execution. Changing logic states on inputs would
directly affect logic states on outputs and it’s controlled by the logic,
implemented true program.
EXAMPLES
Example1:
MARKER 0
INPUT 1
START
K1
OUT 1
INPUT 2
STOP
MARKER 1
MARKER0
MARKER3
INPUT 1
LEFT OUT1
K1
`
MARKER5
INPUT 2 MARKER1
RIGHT
MARKER6
OUT2
INPUT 3 K2
STOP
MARKER2 MARKER4
OUT1
K1
INPUT 1 MARKER0
STOP
OUT2
K2
INPUT 2
START
MARKER1 MARKER3
OUT3
MARKER2 K3