Omron SYSMAC C200H-ASC02 Operation Manual page 95

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

Example Programs
Example 9b
Example 10
86
PC Program
Execution
statement
10300
ASCII busy
Remarks:
Product codes stored in DM memory are replaced by data input through a
keyboard. The data is represented as 4-digit hexadecimal numbers.
Purpose:
To accept input from the keyboard and write it to the PC using
the PC WRITE(@...) statement
ASCII Unit Program:
10
INPUT I
20
PC WRITE "@D,0,1,I4";I
30
GOTO 10
Purpose:
To retrieve and print several types of data from the PC using the
PC GET statement
Section 6-1
ASCII Unit Program
10
INPUT I
MOV
20
PC WRITE "I4"; I
30
GOTO 10
#0001
101
MOV
#0000
102
10002
READ flag

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents