en-us_products:mpino_studio2:box_functions:counter
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en-us_products:mpino_studio2:box_functions:counter [2026/09/10 01:05] – 바깥 편집 127.0.0.1 | en-us_products:mpino_studio2:box_functions:counter [2026/11/13 00:27] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Common Rules ===== | ===== Common Rules ===== | ||
| - | Use '' | + | Use '' |
| {{ : | {{ : | ||
| Line 17: | Line 17: | ||
| | [[en-us_products: | | [[en-us_products: | ||
| | [[en-us_products: | | [[en-us_products: | ||
| + | |||
| + | ===== Set the Preset from Memory ===== | ||
| + | |||
| + | If you enter a memory address such as '' | ||
| + | |||
| + | ^ Type ^ Addresses you can use ^ Example ^ | ||
| + | | WORD memory | '' | ||
| + | | DWORD memory | '' | ||
| + | | Symbol | A symbol that points to one of the addresses above | '' | ||
| + | |||
| + | Time units ('' | ||
| + | |||
| + | ^ Run condition ^ Memory value ^ Command entered ^ Expected result ^ | ||
| + | | Rising edge of the left condition | D10=20 | '' | ||
| + | |||
| + | ^ Item ^ CTU and CTUD ^ CTD ^ | ||
| + | | When the memory value is read | Every scan | Only at boot and when initialized by a RESET coil | | ||
| + | | When the value changes while running | Counts up to the new value without a reset. If the current value is already at or above the new value, the counter completes at the next check. | No effect on the current value until the next initialization. The current value is loaded from the memory value at the moment the RESET coil turns on. | | ||
| + | | When the value changes after completion | The done state stays ON until the counter is initialized by a RESET coil. | The new value is read at the next initialization. | | ||
| + | | When the memory value is 0 | Does not complete. Rising edges on the input still add to the current value. | Starts with a current value of 0 and does not complete. | | ||
| + | |||
| + | * Because a memory value of 0 does not complete the counter, an output driven by the done contact stays off after power-on while the HMI has not yet written the value. A numeric 0 ('' | ||
| + | * CTU and CTUD also count rising edges that arrive before the HMI writes the value. To count again from 0 after the value is written, turn the RESET coil on once. | ||
| + | * The value is read as unsigned. A value shown as -1 in monitoring is 65535. When a '' | ||
| + | * A DWORD address in the preset field follows the rule in [[en-us_products: | ||
| + | |||
| + | > **CTD caution:** A CTD with a memory preset reads the memory value at boot. If an HMI, communication, | ||
| + | |||
| + | > **Power-fail retention caution:** When counter '' | ||
| ===== Related Documentation ===== | ===== Related Documentation ===== | ||
en-us_products/mpino_studio2/box_functions/counter.1788969959.txt.gz · Last modified: by 127.0.0.1
