Zmotion Software “RTSys”
RTSys has been Launched!
RTSys is new and updated version from ZDevelop. ZDevelop is Zmotion initial IDE platform, within these 10 years, it can be used in all kinds of industrial applications, like, 3C, packing, laser, medical, robot, etc.
Note: ZDevelop is also can be used, but will not be updated any more.
In last RTSys (1) article , we already have learnt related information, like, optimized parts, main interface, development process, etc.
Today, let’s continue.
Second part -- main contents:
1. RTSys “Controller” Related Functions
A. How to Download & Run Program in RTSys?
B. How to Check Controller State in RTSys?
C. How to Upgrade Your Controller Firmware in RTSys?
D. How to Set Your Controller IP in RTSys?
2. RTSys Program Encryption Methods
A. Lock Your Controller
B. Make Your Program as ZAR Encryption File
C. Make Your Program as LIB Encryption File
3. RTSys Debugging & Diagnosis
A. Program Debugging Tools
B. Program Diagnosis Tools
In addition, you also can refer to corresponding videos :
One Free IDE Motion Control Development Software “RTSys” for You (1): https://youtu.be/4C3S2n9774A
One Free IDE Motion Control Development Software “RTSys” for You (2): https://youtu.be/c5XSlCdJpCE
More Details, Please Refer to RTSys User Manual: https://www.zmotionglobal.com/upload/RTSys%20User%20Manual%20V1.2.0.pdf !
RTSys is one free IDE development environment mainly for industrial area, which is developed by Zmotion (national produced). Then, our Zmotion motion controller can match with RTSys for one-stop-shop development and debugging. That is, RTSys can achieve many functions for the hardware motion controller.
While development and debugging, and after controller connection, these basic controller related functions can be used:
A. How to Download & Run Your Program in RTSys?
You can develop your program as below steps:
Step 1: download & install RTSys
Step 2: open RTSys, switch the Language
Step 3: create one new project and needed files
Step 4: connect to controller.
Step 5: edit your program
When your program is edited, then you can download the program into controller to test it.
In RTSys, there are two downloading methods.
*Download into RAM: your project will be downloaded into controller RAM, run immediately after downloaded, but it doesn’t save project when powered down.
*Download into ROM: your project will be downloaded into controller FLASH, run immediately after downloaded, it will save project when powered down.
B. How to Check Controller State in RTSys?
When connected to your controller, you could know your controller basic information easily through “Controller State” window in RTSys.
In controller state window, there are 4 parts in total.
[Basic Info]
It mainly includes axes, tasks, files, register space, controller model, firmware version, IP address, etc.
--Basic Info Content--
--Corresponding Description--
[ZCanNodes]
It reads and shows CAN bus information of your controller and other connected CAN devices, which mainly includes CANID, device ID, axes, IN, OUT, AD, DA. And for CANID of LOCAL, it is usually the content of your controller.
[Slot0Nodes]
It reads and shows EtherCAT bus information of your controller, specifically, the device connected to EtherCAT interface of your controller, which mainly includes device node No., manufacturer / device ID, axes, IN, OUT, AD, DA.
[CommunicationInfo]
It shows CAN communication configuration and serial ports parameters configuration (RS232 / RS485 / RS422).
The CAN communication configuration is “CANIO_ADDRESS=32, CANIO_ENABLE=1”.
It can be known from CANIO_ADDRESS and CANIO_ENBALE, now the controller is ZCAN MASTER main station module, and the CAN bus communication velocity is 500kps, CAN is enabled.
Then, modify CANIO_ADDRESS and CANIO_ENABLE to set CAN communication:
--Port 0 is RS232, ModbusSlave, address is 1, VR and MODBUS registers are with different areas--
--Port 1 is RS485, ModbusSlave, address is 1, VR and MODBUS registers are with different areas --
--Baud: serial port baudrate--
--DataBits: data bit--
--StopBits: stop bit--
--Parity: verify bit--
C. How to Upgrade Your Controller Firmware in RTSys?
When your controller current firmware can’t meet program requirements, that is, it can’t achieve some command functions, you can update the firmware.
Actually, there are two ways to update it.
[Method 1]
Use “zfirmdown” tool to download zfm firmware file, then update.
[Method 2]
Update in RTSys directly.
Here, we mainly talk about the method 2.
In RTSys, please check current firmware version at first. You can check in controller state window, or open “update firmware” window directly.
You can operate it according above steps.
The latest firmware file can be downloaded from Zmotion website or contact us directly.
D. How to Set Your Controller IP in RTSys?
Generally, the controller factory IP is 192.168.0.11.
And please note the controller can be connected only when your controller IP and your PC IP are in same segment, that is, former 3 segments are the same, only the last segment is different.
[ correct example]
Controller IP: 192.168.0.11
PC IP: 192.168.0.12
[ wrong example]
Controller IP: 192.168.0.11
PC IP: 191.167.0.12
If they are not in same segment, the connection will fail, at that time, you need to modify your controller IP or PC IP, then make them be consistent.
It is easy to modify controller IP in RTSys.
Open “modify IP” window, then enter new IP. After that, it will disconnect automatically, then you can enter new IP to connect.
Except modify in window, you also can enter command to do that, the command is “IP_ADDRESS".
Notes:
*the modification is valid all the time, until it is set next time.
*new IP should be in the range of xxx.xxx.xxx.1 – xxx.xxx.xxx.254.
Zmotion knows your program is very important. Then in RTSys, Zmotion provides 3 kinds of encryption methods. Your program can be protected well without your permission.
(1) Lock Your Controller: you can set password to lock your controller, then the program can’t be downloaded.
(2) Make Your Program as ZAR File: your source codes can be protected. No way to check your program content. Even if it can be downloaded.
(3) Make Your Program as LIB File: your program can’t be checked and modified easily. Because only global sub function definition can be seen, other main contents are encrypted.
A. Lock Your Controller
You can open the window through “controller” – “lock controller”.
Then, you can set the password, and enter twice. The password can be number, letter, special symbols, but not more than 16 characters. And please remember it! (no way to know it if you forget)
Also, enter the correct password to unlock it.
In this way, your downloaded program can be protected, host computer program can’t be downloaded into controller.
B. Make ZAR File
Generate the project as ZAR encryption file, then the ZAR file can be downloaded to controller then run. And, the end user can’t know the source codes .
It can be seen there are two methods.
[bind the controller ID]
When you enter the controller ID, the ZAR file only can be used for this controller. That is, the ZAR file and the controller are bound. Controller ID can be checked in “controller state”, which is unique No.
[bind by password]
You set the password, then ZAR file can be used after entered correct password.
After that, you can select needed storage position.
The ZAR file will be like “xx.zar”.
C. Make Lib File
You also can make your program as Lib file, specifically, make one single program file as one “.lib” file, and save it into .zpj folder.
You can select one file once or several files. After that, the Lib file only will show global sub function definition information, no main program.
In RTSys, there are many debugging tools for edited program.
A. RTSys Debugging Tools
[Oscilloscope]
Oscilloscope is extremely important of program debugging and running. It can transfer signals that can’t be seen by naked eyes into graphics, so it is convenient to analyze change processes of all kinds of signals. Oscilloscope shows controller internal data in graph, it can display different signals, like, axis parameter, axis status, etc., click “Tool” – “Scope” to open the scope window.
--Main Functions of SCOPE--
a. capture data, 8 kinds of data can be checked at the same time
Specific description, please refer to RTSys manual / RTBasic Manual.
b. show data in 4 kinds of dimensional modes: YT, XY, XYZ, XYZD (XYZ and XYZD are 3D modes, you also can adjust the angles)
c. use cursor to do data point positioning / space calculation.
d. superpose channels (up to 4).
e. import / export / search / contrast waveforms.
f. use magnifier to check more details.
[Manual]
You can test the motor axes through “manual”. Generally, connect the motion controller to the machine, then use this “manual” tool to debug one single axis.
It can be seen you can set needed axis No., and set corresponding axis parameters, then do inching motion or continuous motion for one axis.
[IN / OP]
In RTSys “IN” window, you can check input state and special inputs (origin, position limit, alarm). And changes can be watched in real-time clearly.
In RTSys “OP” window, you can check outputs state of your controller and connected expansion modules. Also, you can switch on / off it.
[Register]
In RTSys “Register” window, register values can be read in bulk. And data can be imported, exported. But please note the reading numbers can’t exceed register valid range.
[PWM]
In RTSys “PWM” window, you can set and read controller PWM related parameters, like, duty cycle, frequency, etc., and how many valid PWM channels will be read automatically.
In this way, you can set directly, no need to use command.
[SDO]
In RTSys “SDO” window, you can read and write EtherCAT data dictionary directly. Device can be known by “Device No. & slot No.” or “axis No.”
B. RTSys Diagnosis Tools
[Debugging]
Above is the Debug function, it can track the program and all tasks state. At the same time, variables changes can be watched in real time.
You can click “start / stop debug” to start debugging, and there are ways to download for debugging.
--Down ram again: download project to ram again and start to debug, not saved when power off.
--Down rom again: download project to rom again and start to debug, support power failure storage.
--No download, Reset: it will not download the program, run the program that is downloaded again, and task window will be opened to show current operation status.
--Attach to current: it will not download the program, only open the task window to show current operation status.
When entering debugging, “watch” and “task” windows will be opened. You can check task and variables specific information (more details, see RTSys manual, including all