Chapter 8 Program
8-1
Chapter 8 Program
Here describes the basic program that operate positioning module case by using its commands.
8.1 Example of XBC Programming
8.1.1 General description
Here we supposed the positioning module installed at the slot no.3. In the real usage, you need to change
its value according to your actual set up.
8.1.2 Current State Read
(1) Using SRD command
(a) Module’s ready
After Turn On, if there is no error occurred in Positioning Module, it is “ON,” meaning that modules are ready to operate.
(b) Address of Positioning Module
Before operation, you need to configure its position by numbers. In this example, Positioning Module installed at the slot
no.3.
(c) Axis of operation
Positioning module operate as 2 axes. In this example, number 0 through 1 means axis X through axis Y.
(d) Address of first device where those conditions of current axis are saved
This D00000 tells the address of first device which already register from the configuration of sequence program. For
example, in this program above, the condition of axis X will be saved from D00000 to D00012. How to setup a device
function would be explained at the “Chapter 6.3.33 Reading Driving Condition.”
(e) Also you can use the bit information from saved data in the device for as a condition of another operation. For example,
in this program above, according to use axis X driving signal, you need to setup a data as D00000.0, and to check error
condition of axis Y, you need to configure as D0100.1.
(a) Module ready status
(b) Module position
(c) Axis to command
(d) First address of device to save current axis state