Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Products
  • Automation Systems
  • Machine Automation Controllers

Adding Global Variables in an Online Edit

The Global Variable Table can be edited as an Online edit

Written by Toby Kilroy

Updated at February 26th, 2022

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Products
    Automation Systems Control Components Motion & Drives Quality control & Inspection Robotics Safety Sensing Services Software Switching Components
  • Amplify e-Store
    e-Store public
  • Public CSC
+ More

Sometimes we wish to define a Global Variable which performing an Online Edit in a Sysmac Controller. An Online Edit is when we change the code in the controller while the program continues to execute, and is extremely handy to do, especially during commissioning of a program, we do not need to perform a download to the controller (stopping execution) to make a program change.

During an Online Edit of a user program, we can only create new Internal variables to support our new code. It is not possible to define a new variable as a Global type just as we would do for instance when writing a program offline. This must be created first, we Online Edit the Global Variable Table. 

Assuming you arealready online with a controller, the method to add a Global Variable is as follows;

  1. Double click on the Global Variable Table
  2. Press Control + E to start an online edit. It is now possible to right click on the variable table and create a new variable. Make sure you create the variable correctly, as it will not be possible to edit this variable once it is committed. In particular, ensure that you set the Network Publish settings, Constant or Retained parameters before commiting the change. 
  3. To send the new variable to the Controller, press Control + Shift + E just as you would to send an Online Edit change to the controller.

You can now go to your program, perform an Online Edit and use this new Global Variable in your program just like any other variable that previously existed.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Ethernet/IP Setup Guide Using Network Configurator
  • Where to find the _sNXUNIT_ID of my NX unit?
  • Do I need Power Supply units for my NX CPU?
  • EtherCAT Ring Topology FAQ

Definition by Author

0
0
Expand