HUST H2N Connection Manual
6 - 30
R250 = 0, Input signal type is “rising edge” (0 → 1).
R250 = 1, Input signal type is “falling edge” (1 → 0).
R250 = 2, Input signal type is “always open” (0).
R250 = 3, Input signal type is “always closed” (1).
R251, For storing the ERROR code
In case of ERROR during program execution, the ERROR code will be displayed
on the HUST H2N LCD screen. The ERROR code is stored in R251 which is for
read only.
R252, For storing current M-code
When executing a M-code in a program under AUTO or MDI mode, a one shot
signal S24 will be generated and this M-code will be placed in R252. The M-code
range is M000 ~ M999. When a M-code is finished, C032 becomes high (1). R252
is for read only.
M000~M499 Waiting M-code. The controller will not execute the next program
block unless the M-code is finished (C032 = 1).
M500~M999 Non-waiting M-code. The controller will not wait for the M-code
to finish. It will execute the next block immediately.
R253, For storing current T-code
When executing a T-code in a program under AUTO or MDI mode, a one shot
signal S25 will be generated and this T-code will be placed in R253. The T-code
range is T000 ~ T999. When a T-code is finished, C033 becomes high (1). When
executing a T-code, the controller will not execute the next program block unless
the T-code is finished (C033 = 1). R253 is for read only.
R254, For storing current S-code
When executing a S-code in a program under AUTO or MDI mode, a one shot
signal S26 will be generated and this S-code will be placed in R254. The S-code
range is S000 ~ T999999. When a S-code is finished, C034 becomes high (1).
When executing a S-code, the controller will not execute the next program block
unless the S-code is finished (C034 = 1). R254 is for read only
.
R255, For storing the current program number
The current (being executed) main program number is stored in R255. R255 is for
read only.
When C120 = 1, the program number from the external I/O device will be placed
in R226. When you start execution, this number in R226 will be placed in R255.