Chapter 7 Usage of Various Functions
7-19
8) instruction
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D
Inte-
ger
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
O
O
O O
O O O
O
O
O
DUTY
O
7
O
(1) Functions
- ‘n’ designates pattern no. which is registered at parameter.
- S1 designates device name which will be stored output pulse count no. and error code .(3 word)
-
S2 designates output device (output P area ) .
(2) example of program
when the M0020 is ‘On’ ,it outputs the pulse at 5 pattern to P0040.
It stores the output pulse count no. at D0000 and D0001.
It stores error information at D0002.
All output area is designated for pulse output contact , but it can’t designate over 2 contact at the same time.
Pattern no.
PLSOUT S
1
S
2
D
Output pulse count no.
Output pulse contact
S
3
S
1
S
2
S
2
n
n
PLSOUT 5 D0000 P0040
M0020