V_AXIS (146)


V_AXIS (146)

ID                          146

 

 

Application:

PLC

 

Group: MOTION

 

Short description:

Function that reads the current motion parameters for a given virtual axis.

 

Inputs: none

 

Outputs: (3)

no.

type

impulse

mark

notes

1

R

no

dacc

Acceleration for a given virtual axis
2 R no dvel Velocity for a given virtual axis
3 R no dpos Position for a given virtual axis


Settings:

no.

type

mark

notes

1

I

Axis

Virtual axis number


Function operation:

The V_AXIS function reads the current motion parameters for a given virtual axis. Returns on the outputs dacc, dvel, dpos the acceleration, velocity and position, respectively, for the virtual axis specified by the axis number. The function gets values from appropriate special registers assigned to given virtual axes according to the table below.

 

R registers and M markers used:

no.

name

description

R - read, W - write

R3113

_DemandPosition_1

current set position of axis 1

R
R3114 _DemandSpeed_1 current set speed of axis 1 R
R3115 _DemandAccel_1 current set acceleration of axis 1 R
R3143 _DemandPosition_2 current set position of axis 2 R
R3144 _DemandSpeed_2 current set speed of axis 2 R
R3145 _DemandAccel_2 current set acceleration of axis 2 R
R3173 _DemandPosition_3 current set position of axis 3 R
R3174 _DemandSpeed_3 current set speed of axis 3 R
R3175 _DemandAccel_3 current set acceleration of axis 3 R
R3203 _DemandPosition_4 current set position of axis 4 R
R3204 _DemandSpeed_4 current set speed of axis 4 R
R3205 _DemandAccel_4 current set acceleration of axis 4 R
R3233 _DemandPosition_5 current set position of axis 5 R
R3234 _DemandSpeed_5 current set speed of axis 5 R
R3235 _DemandAccel_5 current set acceleration of axis 5 R
R3263 _DemandPosition_6 current set position of axis 6 R
R3264 _DemandSpeed_6 current set speed of axis 6 R
R3265 _DemandAccel_6 current set acceleration of axis 6 R
R3293 _DemandPosition_7 current set position of axis 7 R
R3294 _DemandSpeed_7 current set speed of axis 7 R
R3295 _DemandAccel_7 current set acceleration of axis 7 R
R3323 _DemandPosition_8 current set position of axis 8 R
R3324 _DemandSpeed_8 current set speed of axis 8 R
R3325 _DemandAccel_8 current set acceleration of axis 8 R