Chapter 7 Usage of Various Functions

5) PWM output (PWM)

PWM

PWM(Pulse Width Modulation) output

 

Instruction

 

 

 

 

Available device

 

 

 

No. of

 

Flag

 

 

 

M

P

K

L

F

T

C

S

D

#D

integer

steps

Error

Zero

Carry

 

 

 

 

(F110)

(F111)

(F112)

 

S

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SV1

 

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SV2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag set

Error

Error flag turns on when designating area is over

(F110)

and the instruction isn’t executed

 

 

Designation

SCh. for PWM output(0~1)

SV1

PWM output period( 1 ~ 20000)[ms]

SV2

Off Duty(0 ~ 100%)

PWM S SV1 SV2

(1)Functions

When input condition turns on, Output pulses which have period as SV1.

Duty ratio of pulses is assigned by SV2.

When input condition turns off, PWM operation stops

(2)Example program

When input condition turns on, Output pulses as below

Positioning Ch 1(P41)

450ms 50ms

Input condition(M0000)

500ms

7-95

Page 179
Image 179
LG Electronics 120S user manual PWM output PWM, Pwm, SV1 SV2