2-5
Section
CPM2A/CPM2C Pulse Output Functions
116
Programming (CPM2C Example)
Execution condition
Detects OFF to ON transition in execution condition.
Reads the value from the thumb rotary switch.
Value from the thumb rotary switch
Duty ratio setting
Variable duty pulse output
Pulse output 0
Output frequency: 100 Hz
Duty ratio setting
Stops pulse output 0
DIFD (14)
20000
ANDW (34)
000
#000F
DM0100
BCD (24)
DM0100
DM0101
MUL (32)
DM0101
#0010
DM0102
PWM (––)
000
#1000
DM0102
INI(61)
000
003
000
20000
END (01)