3
System Configuration Section 1-2
High-speed Data
Exchange Using Shared
Memory
There is an internal shared memory shared with the CPU Unit, and the ASCII
Unit and the CPU Unit can access this shared memory asynchronously. Previ-
ously, in data exchange using the I/O refresh period, the CPU Unit or ASCII
Unit had to wait until the I/O refresh timing arrived, but now shared memory
can be read/written as soon as the command/instruction is executed. High-
speed data transfer is also possible by combining an instantaneous interrupt
with the IOWR instruction addressed to the ASCII Unit from the CPU Unit.
Bit ON/OFF Command By treating variables as bit strings, individual bits out of 16 or 32 bits can be
turned ON/OFF in integer variables, simplifying bit input processing to the PC.
Extensive Interrupt
Processing There are two ways that the CPU Unit can interrupt the ASCII Unit: by I/O
refreshing or by IOWR instruction. There are 5 types of interrupts for receiving
data from the communications circuit: General data reception, specified char-
acter reception, specified byte size reception, leading and final character
reception, leading and specified number of characters reception. Interrupts
can also occur for key inputs, when an error occurs, and at specified times.
Timers can also generate either one-shot or interval interrupts.
Built-in Transmission
Control Signal Control Commands for transmission control signals (RTS, DTR) and commands to
monitor transmission control signals (CTS, DSR) are provided. These com-
mands simplify handling all types of transmission protocols.
Error Check Calculation
Commands The FCS instruction can be used to calculate error check codes, including
those for LRC (longitudinal parity), CRC-CCITT (XMODEM), CRC-16 (MOD-
BUS), and SUM (1-byte or 2-byte). This allows you to eliminate the program-
ming previously required to calculate error check codes.
Special Operations Calculations are possible for exponential function (ex), square root (√), trigo-
nometric functions (TAN, SIN, and COS), inverse trigonometric functions
(TAN–1, SIN–1, COS–1), and logarithmic functions (LOG) in both single and
double precision.
More Commands Support is provided for conditional repeating commands (WHILE/WEND), IF
commands enabling structured programming (@IF...ENDIF), and commands
that record the interrupted line number when an interrupt occurred (INTRB).
Full BASIC Debugging The following commands are also supported: BRKPT commands to suspend
operation at specified lines, single or multiple line STEP commands, and
WATCH commands to display the contents of variables when operation is sus-
pended. This makes it easy to confirm that the BASIC program is running cor-
rectly.
A TRON command to monitor tracing of the execution lines is also available.
The results of this trace are saved in the trace buffer, and can be monitored
afterwards by means of the TRACE command. This allows checking the oper-
ation of the BASIC program.
Error Log Up to 30 error records are stored in an error log. This is useful for trouble-
shooting.
1-2 System Configuration
The C200H-ASC11/ASC21/ASC31 ASCII Units are Special I/O Units for the
C200H, C200HS, C200HX/HG/HE, and CS1-series Programmable Control-
lers.
The ASCII Unit’s communications port #1 (C200H-ASC11/ASC21) or terminal
port (C200H-ASC31) can be connected to a computer terminal using an RS-
232C cable to input BASIC commands, compile BASIC programs, debug, and
display RUN results.