Mitsubishi Electronics 13JW55 Network Card User Manual


 
5 - 28
Operation Practice
Write the program to the CPU.
Turn on X3 and X4.
C10 starts to count. (one count every two sec.) The current counter value is
displayed on the digital display (Y40 to Y4F).
Make sure that the devices Y70 to Y76 turn on as follows.
Y70
Y71
Y72
Y73
Y74
Y75
Y76
Output
012345 101520253035404550
Count (the current value of the counter C10)
The range where Y70 to Y76 turn on
> K50 C10
>
> =
Differences between and
> = K50 C10
equals to 49.
equals to 50.
The counter is designed to be reset every 200sec.
In this way, the comparison instruction does not only compare one data but
also specifies the range. This function is commonly used for the program to
judge the acceptances of products.
Applicable device
Internal device
(system or user)
File
register
MELSECNET
/10 (H) Direct
Jn\
Index
register
Constant
Pointer
Level
Bit Word R Bit Word
Intelligent
function
module
Un\G
Z K H P I N
Digit
Number of basic
ste
p
s
S1
Comparison
instruction
S1 S2
S2
K1
to
K4
3