Omron SYSMAC C200H-ASC02 Operation Manual page 62

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

Advertisement

BASIC Language
CLS Statement
OPEN Statement
52
The END statement and the NEW command automatically close the ports,
but the STOP statement does not.
Purpose:
To clear the screen
Format:
CLS [#<port>]
<port> is an integer (1 or 2).
Remarks:
This statement clears the screen and moves the cursor to the home position.
If the port number is omitted, port 1 is assumed.
Purpose:
To allow input/output operations to take place through the speci-
fied port
Format:
OPEN #<port>, "<device name>:[(<com spec. or vsl>)]"
<port> is an integer (1 or 2).
<device name> identifies the device.
<com spec> stands for the communication specifications.
<vsl> stands for valid signal line.
Examples: OPEN #1,"KYBD:"
OPEN #2,"COMU:(14)"
The following three tables define the communication parameters for the
OPEN Statement.
Peripheral Device
Name
Terminal
TERM:
Keyboard
KYBD:
Display
SCRN:
Printer
LPRT:
RS-232C device
COMU:
Communication
Character Length
Specifications
0
7 bits
1
7 bits
2
7 bits
3
7 bits
4
8 bits
5
8 bits
6
8 bits
7
8 bits
Output from ASCII
Input to ASCII Unit
Unit
YES
YES
NO
YES
YES
NO
YES
NO
YES
YES
Parity
Even
Odd
Even
Odd
None
None
Even
Odd
Section 4-2
Stop Bit
2 bits
2 bits
1 bit
1 bit
2 bits
1 bit
1 bit
1 bit

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents