Use Pto For Pwm Control - Allen-Bradley Micro830 Manual

Hide thumbs Also See for Micro830:
Table of Contents

Advertisement

Chapter 7
Motion Control

Use PTO for PWM Control

1
Enable/power up the PWM axis immediately after going to RUN mode. PWM axis will remain powered ON (until Program mode,
and so on).
__SYSVA_FIRST_SCAN
2
Continually use MC_WriteParameter (Parameter 1005) to change the Duty Cycle from global variable G_PWM_Duty_Cycle
(example: 0.5 => 50%)
130
The following example shows you how to use a PTO axis as a PWM.
Launch Connected Components Workbench and create the following
ladder program.
MC_Power_1
MC_Power
EN
Axis
PWM0
TRUE
Status
Enable
Enable_Positive
TRUE
Active
Enable_Negative
TRUE
ErrorID
Update_PWM_Duty_Cycle
Update_PWM_Duty_Cycle
G_PWM_Duty_Cycle
ENO
Axis
Busy
Error
Update_PWM_Duty_Cycle
MC_WriteParameter_1
MC_WriteParameter
EN
PWM0
AxisIn
Execute
Parameter_Number
1005
Value
MC_ExecutionMode
0
Rockwell Automation Publication 2080-UM002K-EN-E - March 2019
ENO
Axis
Done
Busy
Error
ErrorID

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micro850Micro870

Table of Contents