Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GVL_IO
- ////////
- {attribute 'qualified_only'}
- VAR_GLOBAL
- Axis1:AXIS_REF;
- Axis2:AXIS_REF;
- END_VAR
- MAIN
- ////////
- PROGRAM MAIN
- VAR
- END_VAR
- ////////
- PGR_Power();
- PGR_MOVE();
- PGR_MOVE
- ////////
- PROGRAM PGR_MOVE
- VAR
- axis1Abs:MC_MoveAbsolute;
- bExecuteAxis1: BOOL;
- fPositionAxis1: LREAL;
- fVelocityAxis1: LREAL;
- END_VAR
- ////////
- axis1Abs(
- Axis:= GVL_IO.Axis1,
- Execute:= bExecuteAxis1,
- Position:= fPositionAxis1,
- Velocity:= fVelocityAxis1,
- Acceleration:= 0.0,
- Deceleration:= 0.0,
- Jerk:= 0.0,
- BufferMode:= 0,
- Options:= ,
- Done=> ,
- Busy=> ,
- Active=> ,
- CommandAborted=> ,
- Error=> ,
- ErrorID=> );
- ///////
- PGR_Power
- ///////
- PROGRAM PGR_Power
- VAR
- axis1Power:MC_Power;
- axis2Power:MC_Power;
- bEnable: BOOL;
- fOverrideAxis1: LREAL;
- bStatus: BOOL;
- END_VAR
- ///////
- axis1Power(
- Axis:= GVL_IO.Axis1,
- Enable:= bEnable, //ready
- Enable_Positive:= TRUE, //povoleny pohyb vpred
- Enable_Negative:= TRUE, //povoleny pohyb vzad
- Override:= fOverrideAxis1,
- BufferMode:= MC_Aborting,
- Options:= ,
- STATUS=> bStatus,
- Busy=> ,
- Active=> ,
- Error=> ,
- ErrorID=> );
- /////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement