6 Interface Between CNC And PLC
6 - 33
6.4 Variables
All data in HUST H2N system is stored in the variables. If you like to check a
problem during execution, you can check the variable.
Variable Number Definition
00001 ... 09999 For user’s application
10000 ... 11000 System variables including Register, Counter, Timer
11001 ... 12000 System variables including MCM parameters
12001 ... 13500 System variables including axial positions
1. Variables #10000 ~ #10899
Variable Number Variable Data Data Range
10000 ~ 10255 Register R000 ~ R255
10256 ~ 10511 Counter Cn000 ~ Cn255
10512 ~ 10767 Timer Tm000 ~ Tm255
10800 ~ 10807 I - Bit Data I0000 ~ I0255
10808 ~ 10815 O – Bit Data O0000 ~ O0255
10816 ~ 10823 C – Bit Data C0000 ~ C0255
10824 ~ 10831 S – Bit Data S0000 ~ S0255
10832 ~ 10863 A – Bit Data A0000 ~ A1023
2. Variables #10900 ~ #11000
Variable Number Variable Data Unit
10902 Time required for system to scan one cycle Millisec.
10903
Time required to finish on cycle of program for M99,
M02, M30
Millisec.
10904 Time since power-on Second
10905 Cumulative time for power-on Second
10906
Time required to finish on cycle of program for M99,
M02, M30
Second
10921 Counter limit for M99, M02, M30
10922 Current counter for M99, M02, M30
10923 Current counter for M99
10924 Current program block number
10925
Mode status: 0 – NONE, 1 – AUTO,
2 – HOME
3 – EDIT, 4 – JOG, 5 – TAPE
6 – TEACH, 7 – MDI
10931
G54 .. G59 Work coordinate designation( 0 .. 5 )
10932 Current program number
10933
Production speed = 1 minute ÷#10903
Pc / min