Panasonic FP Series Programming Manual page 323

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Counter instructions
Body
Count up:
If reset is set, the current_value (CV) will be reset. If up_clock is set, the value 1 is added to the
current_value. This procedure is repeated for each rising edge detected at up_clock until the
current value is greater than/equal to the set_value. Then output_up is set. The procedure is not
conducted, if reset and/or set is/are set.
Count down:
If set is set (status = TRUE), the set_value (PV = preset value) will be loaded in the current_value
(CV). If down_clock is set, the value 1 is subtracted from set_value at each clock. This procedure
is repeated at each clock until the current_value is smaller than/equal to zero. Then,
signal_output is set. The procedure will not be conducted, if reset and/or set is/are set or if CU
and CV are set at the same time. In the latter case, counting will be downwards.
LD
ST
When programming with structured text, enter the following:
copy_name(CU:= up_clock, CD:= down_clock, RESET:= reset, LOAD:= set, PV:=
set_value,
322
QU=> output_up, QD=> output_down, CV=> current_value);

Advertisement

Table of Contents
loading

Table of Contents