How I can create and delete a Virtual Axis?

How I can create and delete a Virtual Axis?

An axis is Virtual when the ATYPE is 0 and the axis is in the processing schedule.  To add an axis to the processing schedule, simply write to any axis parameter.  For example UNITS AXIS(20) = 245 will activate the axis and  it will become a virtual axis if it is not already a real axis with a drive and motor.

Example setup:

BASE(10)
IF ATYPE = 0 THEN
    UNITS = 100
    SERVO = ON
ELSE
   PRINT #5, "Axis ";BASE;" is already allocated to a drive/motor"
ENDIF

Once an axis is inthe processing schedule, it cannot be de-activated and the controller should be re-started to remove all previously active axes.
    • Related Articles

    • Linking Motion of Two Axes

      If needed, make the second motor direction the same as the first. Either reverse it in the servo-drive, or you can put the following 2 commands in the startup: STEP_RATIO(-1, 1) ENCODER_RATIO(-1, 1) It will be easier to use CONNECT etc. because you ...
    • How many axes work synchronously in the Euro408?

      In all the Motion Coordinators it is possible to run all axes synchronously.  There is no limit. So in the Euro404 you can run all 4 axes with for example a MOVEABS(x, y, z, a) In the Euro408 you can run all 8 axes with MOVEABS(x, y, z, a, b, c, d, ...
    • WDOG OFF for independent axes

      Is there a way to turn off the WDOG for just one motor? We have some motors that have magnetic coupling shafts. when the motor stops, there is some oscillation because shaft is bouncing between the two poles of the magnet and the motor is trying to ...
    • AN-315 EtherCAT setup for Panasonic A5B Drive

      When delivered, the Panasonic A5B has 2 features set; the Positive Over Travel Input (POT) and the Negative Over Travel input (NOT). If these are connected to limit switches then the system will work in the usual way until the limit switch is ...
    • virtual output

      Q: How do I used a virtual output? How can I read the state of the virtual output? A: Set virtual output with OP. Read virtual output with IN. OP(24,ON) IF IN(24)=ON THEN PRINT "OK" ENDIF