5-1
Section
Examples of Counter Unit Operation
49
5-1-4 Count Restart Operation after Error Clearance
If power supply from the I/O Unit interface to the Counter Unit is interrupted, the
Counter Unit will stop count operation. It will be necessary to restart the count
operation. When the Counter Unit is restarted, all settings, such as the setting
values, the present value, and the count mode will be cleared. These settings
must be reset. By adding the following program to the program described in the
previous section,
5-1-3 Counter Setting and Execution
, the settings will be reset
automatically when the Counter Unit is restarted, and it will be possible to
resume count operations. An example of the program used, along with an
explanation of that program appears below. For details about the status area of
the Master Unit, refer to
PROFIBUS-DP Operation Manual (W349)
.
If any of the following occur after the Counter Unit setting
and start-up have been completed (and 23204 is ON),
the Step Advance Bit 23300 turns ON in order to reset
the settings for the Counter Unit.
S
The Communication Unit Bit (node number 01 =
10601) for the Master Unit normal Slave information
area is OFF (error).
S
Bit 5 (10105) for the Master status area (1) is ON
S
The Counter Unit Bit (#0 = 35208) for the error I/O Unit
address in the I/O Unit interface status area is ON
(error).
When the Step Advance Flag 23300 turns ON for reset-
ting, if all of the following conditions are satisfied, the
Counter Unit will start up normally and communications
will be possible. Therefore, the Step Advance Flag
23200 will turn ON. The previously described setting and
execution program will be re-executed.
S
Bit 15 (10115) of the Master status area is ON
S
Bit 15 (35115) of I/O Unit connection information in the
I/O Unit interface status area is ON (I/O refresh in prog-
ress)
23203
35208
MOV(21)
#0001
232
23204
23300
10105
23300
10115
35115
10601