![background image](http://html1.mh-extra.com/html/omron/c500-asc04/c500-asc04_operation-manual_743033097.webp)
87
4. PC: When execution of WRIT(87/191) is complete, the Equals
Flag is turned ON and the self-holding bit is turned OFF.
5. ASCII:
The data is read from the PC using PC READ
6. ASCII:
Turns OFF bit 0108 using the PC PUT 0 statement
7. ASCII:
Displays the data which is read in step 5.
Example 13
Purpose:
To transfer data from the ASCII Unit to the PC with the
ASCII Unit maintaining control
PC Program
ASCII Unit Program
100 PC PUT 2
110 PC WRITE “5I4” ; A1, A2, A3, A4, A5
120 FOR J = 1 TO 100 : NEXT J
130 PC PUT 0
READ(88/190)
#0005
DM300
01
DIFU(13/013) 3400
0109
3400
3401
3401
3401
3402
Equals Flag
3402
Execution Sequence:
1. ASCII:
Turns ON bit 0109 with the PC PUT 2 statement and ex-
ecutes the PC WRITE statement.
2. PC:
The self-holding bit (3401) is set on the positive edge tran-
sition of bit 0109.
3. PC:
Executes READ(88/190) when the self-holding bit (3401)
is turned ON.
4. PC:
Turns ON the Equals Flag after execution of
READ(88/190) is completed and then turns OFF the
self-holding bit (3401).
5. ASCII:
Waits at line 120 until bit 0109 is turned ON by the PC. The
wait time should be adjusted to the cycle time of the PC.
6. ASCII:
Turns OFF bit 0109 with the PC PUT 0 statement.
Remarks:
If the time required to transfer data from the ASCII Unit to the PC is shorter than
one PC scan cycle, the PC cannot execute READ(88/190). In the above exam-
ple, the ASCII Unit waits for the PC signal to be received at line 120.
Programs in Two-word Mode
Summary of Contents for C500-ASC04
Page 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Page 5: ...iv ...
Page 7: ...vi ...