120
Pulse I/O Board Section 2-2
2-2-11 Determining the Status of Ports 1 and 2
The status of pulse outputs (fixed or variable duty factor pulses) of ports 1 and
2 can be determined either by reading the status of the relevant flags in the
SR and AR areas or by executing PRV(62).
Reading Flag Status The memory words associated with the status of pulse outputs from ports 1
and 2 are shown in the following tables. The pulse output status can be deter-
mined by reading the contents of the words and flags shown in these words.
• Inner Board Error Codes
• Operation Status Indicators
Using PRV(62) The status of pulse outputs can be determined by using PRV(62). Specify port
1 or 2 (P=001 to 002) and the destination word D.
The bits comprising the pulse output status information stored in D have the
following meanings:
In addition to the above, bits 0 and 1 store information about the status of the
high-speed counter. All other bits are 0.
Word Bits Slot Function
AR 04 08 to 15 Slot 2 Error codes are stored as two-digit hexadecimal:
00 Hex: Normal
01 and 02 Hex: Hardware error
02 Hex: PC Setup error
03 Hex: PC stopped during
pulse output
Word Bit Name Function
Port 1 Port 2
AR 05 AR 06 12 Deceleration
Flag
Indicates the passage through a
deceleration point when decelera-
tion is specified.
0: Not specified
1: Specified
13 Number of
Pulses Flag
Stores whether or not the number
of pulses have been specified.
0: Not specified
1: Specified
14 Pulse Output
Completed
Flag
Indicates the completion status of
the pulse output.
0: Not completed
1: Completed
15 Pulse Output
Status Flag
Indicates the operation status of the
pulse output.
0: Pulse output stopped
1: Pulse output in progress
Bit Function Description
04 Deceleration Flag Indicates deceleration.
(0: Not decelerating; 1: Decelerating)
05 Number of Pulses Flag Indicates whether the total number of pulses have been
specified. (0: Not specified; 1: Specified.)
06 Pulse Output Com-
pleted Flag
Indicates whether pulse output has been completed.
(0: Not completed; 1: Completed.)
07 Pulse Output Status
Flag
Indicates whether pulses are being output.
(0: No output; 1: Output in progress.)
@PRV(62)
001
P
D
P: Port specifier
C: 001
D: First destination word