184
10 BLOCK LINK EXAMPLES
10.4 Cam Switch
10.4 Cam Switch
The preset output status of the coincidence output range is compared with a count value to switch on or off the output of the
multi function counter block at each step.
The following is an example assuming that an output is switched by seven steps as follows. Note that this link example is for
when a 32-bit unsigned multi function counter block is used. (The cam switch is not supported by 16-bit multi function counter
blocks.)
Link and parameter
The following shows a link example of the hardware logic outline window and a link example and parameter setting example
of the multi function counter block detail window.
■Hardware logic outline window
Step No. Count value Output
0 (lower limit value) to 999 Low
0 1000 to 1999 High
1 2000 to 2999 Low
2 3000 to 3999 High
3 4000 to 4999 Low
4 5000 to 5999 High
5 6000 to 6999 Low
6 7000 to 10000 (upper limit value) High
ON
OFF
1000 2000 3000 4000 5000 6000 7000
Cam switch output terminal
Count value
Phase A input
pulse
Phase B input
pulse
Cam switch
output signal