Present Count Value Reading; Counter Setting And Execution - Omron DEVICENET#05-2003 Operation Manual

Drt1-com gt1 series devicenet multiple i/o terminal
Table of Contents

Advertisement

Examples of Counter Unit Operation
3-1-2

Present Count Value Reading

Execution
Condition
3-1-3

Counter Setting and Execution

If the following bits in the output area for the Counter Unit have been set to
ON, the set values or the present count value (count value) will always be
read to words m and m+1 in the input area.
To read set value 1:
To read set value 2:
To read count value: Output area word n+2, bit 06
The simplest example of a program to commence count operation and obtain
the count value is given in the following. For details refer to 5-4 GT1-CT01
Counter Unit.
Note
1. To execute counting, it is necessary to set the count mode. If the count
mode is changed during count operation, however, the count value will be
cleared to 0.
2. Setting and reading will not be executed if a bit with a higher priority is ON.
As shown in the following example, therefore, it is recommended that word
n+2 be used with the MOV instruction.
When the program is executed, the necessary settings for the Counter Unit
will be made, and count operation will start. During count operation, external
outputs 1 and 2 of the Counter Unit will automatically switch ON or OFF,
according to the count value.
Note It will be necessary to reset all the settings, including the set values,
present value and count mode, every time the Counter Unit is turned
ON.
Output area word n+2, bit 04
Output area word n+2, bit 05
MOV(21)
When execution of count value reading is indicated
(execution conditions are ON), set the following condi-
#0C40
tions:
Word 53
053
Bit 03: Data code BCD
Bit 06: Count value reading
END(01)
Bits 10, 11: Count mode phase difference 1
The count value will subsequently be sent to words m
and m+1 (353, 354) of the Counter Unit automatically.
Section 3-1
31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Drt1-comGt1Gt1-id16Gt1-od16mxGt1-ad08mxGt1-da04mx

Table of Contents