Chapter 7 Usage of Various Functions

9)Programming example

(1)Parameter setting

Channel : Ch0

Counter format : Ring counter ( 0 ~ 100,000)

Counter mode : 2-phase multiplication mode

- P0 : A-phase pulse input, P1 : B-phase pulse input

Preset

-Preset type : internal preset (M100)

-Preset value : 0

Last counter setting

-None

Comparison output

-Output mode : Zone comparison set

- SV1 : 10,000 SV2 : 20,000

-Output point : P43

RPM setting

-Refresh cycle : 100(*10ms)

-Pulses per rotate : 60

-RPM save area : D100

7-12

Page 96
Image 96
LG Electronics 120S user manual Programming example