Special offers from our partners!
Find Replacement BBQ Parts for 20,308 Models. Repair your BBQ today.
7-168
PR
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• There is no 00
H code within the range of the device specified by when SM701 is OFF.
(Error code: 4101)
Program Example
(1) The following program converts the string "ABCDEFGHIJKLMNOP" to ASCII code when X0
is turned ON and stores it from D0 to D7, and then outputs the ASCII code at D0 to D7 to
Y14 to Y1D when X3 is turned ON.
[Ladder Mode]
[List Mode]
[Timing Chart]
S
When X0 turns ON, converts “ABCDEFGHIJKLMOP”
to the ASCII code and stores it to D to D7.
When X3 turns ON, outputs the ASCII
code in D0 to D7 to Y14 to Y1D.
Step
Instruction
Device
Y14
Y1B
PR instruction in
execution flag Y1D
Strobe signal Y1C
ASCII code
10
ms
10
ms
PR instruction
10 ms
41H 42H
50H
AB P
10 ms
OFF
ON
OFF
PR instruction in execution 480 ms
$MOV
"ABCDEFGH"
D0
$MOV
"IJKLMNOP"
D4
X0
X3
OFF
ON
Stores the ASCII
code for "A" to "H"
to D0 to D3.
Stores the ASCII code for
"I" to "P" to D4 to D7.