We provide the basic usage and skill in the sample programs with source code.
Because the sample programs are made as simply as possible, you need to make good use of these for programming.
Folder structure
The following figure shows the structure of the folder in which API-SMC(LNX) is installed.
User Directory/contec/csmc
|
|________ samples
|
|________ jp
|
|________ inc Include files
|
|________ gcc gcc version
| |
| |________ console console samples
| |
| |________ console_curses console samples using curses
|
|________ python python version
|
|________ console console samples
The following figure shows the structure of directory in which the sample programs are stored by language.
gcc sample directory
|
|________ console
| |
| |________ setting
| |
| |________ basemove
| |
| |________ event
| |
| |________ syncmove
| |
| |________ bankspd
| |
| |________ bankmlt
| |
| |________ bankarc
| |
| |________ ctlio
| |
| |________ status
|
|________ console_curses
|
|________ ctlio
|
|________ status
python sample directory
|
|________ console
|
|________ setting
|
|________ basemove
|
|________ event
|
|________ syncmove
|
|________ bankspd
|
|________ bankmlt
|
|________ bankarc
|
|________ ctlio
|
|________ status
Contents of gcc sample program
Initialization sample |
|
It initializes it by using the initialization function. |
|
Basic Motion Setting sample |
|
The motion operation and the operation change are done by using the basic operation setting function. |
|
Event sample |
|
Operation by the event is observed by using the event function. |
|
Syhchronize sample |
|
Synchronizes by using the basic operation setting function. |
|
Bank operates sample |
|
The bank (continuousness) operates by using the enhancing operation setting function. |
|
Interpolation operation sample |
|
The interpolation operation of two or more axes is done by using the enhancing operation setting function. |
|
Circular arc interpolation operation sample |
|
The circular arc interpolation operation of two axes is done by using the enhancing operation setting function. |
|
Control I/O sample |
|
The confirmation and the output of the control I/O signal are done by using the control signal function. |
|
Status acquisition sample |
|
The operation status function is used, and the operation status is confirmed and Priset of the pulse. |
Contents of python sample program
Initialization sample |
|
It initializes it by using the initialization function. |
|
Basic Motion Setting sample |
|
The motion operation and the operation change are done by using the basic operation setting function. |
|
Event sample |
|
Operation by the event is observed by using the event function. |
|
Syhchronize sample |
|
Synchronizes by using the basic operation setting function. |
|
Bank operates sample |
|
The bank (continuousness) operates by using the enhancing operation setting function. |
|
Interpolation operation sample |
|
The interpolation operation of two or more axes is done by using the enhancing operation setting function. |
|
Circular arc interpolation operation sample |
|
The circular arc interpolation operation of two axes is done by using the enhancing operation setting function. |
|
Control I/O sample |
|
The confirmation and the output of the control I/O signal are done by using the control signal function. |
|
Status acquisition sample |
|
The operation status function is used, and the operation status is confirmed and Priset of the pulse. |