·224·
Installation manual
CNC 8060
CNC 8065
3.
INTRODUCTION TO THE PLC.
(REF: 1402)
PLC resources.
Messages (MSG1-MSG1024).
When activated (=1), they display a message on the CNC screen. The texts associated with
the messages must be previously defined in the message and error table of the PLC.
They are represented by the letters "MSG" followed by a message number between MSG1
and MSG1024.
All of them are initialized (=0) when starting up the PLC.
Errors (ERR1-ERR1024)
When activated (=1), they cause an error, they show an error message and interrupt the
execution of the CNC. The texts associated with the errors must be previously defined in the
message and error table of the PLC. PLC errors may be configured so they activate the
emergency signal of the PLC (_EMERGEN).
They are represented by the word "ERR" followed by an error number between ERR1 and
ERR1024.
All of them are initialized (=0) when starting up the PLC.
The errors do not activate the alarm of the CNC, (_ALARM) signal.
Clocks (CLK).
They are internal clocks with different time periods to be used in the PLC program.
They are represented by the word "CLK" followed by a clock number .
All of them are initialized (=0) when starting up the PLC.
These are the clock marks available. Their half-period (or after how long their state 0/1
changes) is shown next to them.
Registers (R1-R1024).
They are elements that can store a numeric variable in 32 bits. The value stored in each
register is considered as a signed integer between ± 2.147.483.647. It can be processed
as decimal or hexadecimal number (preceded by the "$" sign). For example:
They are represented by the letter "R" followed by a register number between R1 and R1024.
It is also possible to refer to a register bit with the letter "B" and a bit number (0/31). The PLC
takes bit 0 as the least significant bit and as bit 31 as the most significant bit.
Clock. Period. Clock. Period. Clock. Period.
CLK1 1 ms CLK100 100 ms CLK1000 1 s
CLK2 2 ms CLK200 200 ms CLK2000 2 s
CLK4 4 ms CLK400 400 ms CLK4000 4 s
CLK8 8 ms CLK800 800 ms CLK8000 8 s
CLK16 16 ms CLK1600 1.6 s CLK16000 16 s
CLK32 32 ms CLK3200 3.2 s CLK32000 32 s
CLK64 64 ms CLK6400 6.4 s CLK64000 64 s
CLK128 128 ms CLK12800 12.8 s CLK128000 128 s
156 (Decimal)
$9C (Hexadecimal)
B7R155 Refers to bit 7 of register 155.