Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 82

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

CPM2A/CPM2C High-speed Counters
Read Status
This function reads the high-speed counter status, such as whether a compari-
son operation is in progress or whether an overflow or underflow has occurred.
Using an Instruction
(@)PRV(62)
Port specifier (000: High-speed counter)
000
Control designation (001: Read status)
001
D
Word for storing status
Using Data Areas
The status is stored in AR 1108 and AR 1109 as shown below.
Overflow/underflow
0: Normal
1: Overflow/underflow
AR 1108 and AR 1109 are refreshed with every scan, so there may be a discrep-
ancy from the exact status at any given time.
When the status is read by executing PRV(62), AR 1108 and AR 1109 are re-
freshed with the same timing.
Read Range Comparison Result
This function reads the result of a range comparison showing whether or not the
PV is within a range.
Using an Instruction
(@)PRV(62)
000
Port specifier (000: High-speed counter)
002
Control designation (002: Read range comparison result)
D
Beginning word for storing range comparison result
Match with 1st condition (0: No match; 1: Match)
Match with 2nd condition (0: No match; 1: Match)
Match with 3rd condition (0: No match; 1: Match)
Match with 4th condition (0: No match; 1: Match)
Match with 5th condition (0: No match; 1: Match)
Match with 6th condition (0: No match; 1: Match)
Match with 7th condition (0: No match; 1: Match)
Match with 8th condition (0: No match; 1: Match)
Using Data Areas
The range comparison result is stored in AR 1100 through AR 1107, as shown
below.
Match with 1st condition (0: No match; 1: Match)
Match with 2nd condition (0: No match; 1: Match)
Match with 3rd condition (0: No match; 1: Match)
Match with 4th condition (0: No match; 1: Match)
Match with 5th condition (0: No match; 1: Match)
Match with 6th condition (0: No match; 1: Match)
Match with 7th condition (0: No match; 1: Match)
Match with 8th condition (0: No match; 1: Match)
Overflow/underflow
0: Normal
1: Overflow/underflow
Comparison
0: Stopped
1: In progress
Section
2-2
Comparison
0: Stopped
1: In progress
61

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents