Update Time:08-03-2013 This document is the instruction for OpenCAN1.1
This document is the instruction for OpenCAN1.1. Welcome to your suggestion.
l Start………………………………….…….............………..2
l Main interface……………………………………..…..……2
l Data access interface…………………………........………..3
l Example…………………………………….……….………5
start
1. Choose OpenCAN protocol in the setting.
2. Start LEVISTUDIO. Select “Setting”-“communication port settings”-“OpenCAN setting”
1. Data access: add a frame related to the register address;
2. Frame list: it shows the main parameters of each frame added;
3. Modify: modify the new-added frame in the “data access”;
4. Delete: delete the elected frame in the “data access”. If there’s no selected frame, it will delete the first frame;
5. Clear: delete all the frames;
6. Browse: display “.xml” type configuration file in IE;
7. Finish: finish the setting for frame and exit.
Data access interface
1. ID: set the ID for a CAN frame. It’s hexadecimal type;
2. ID distribute: divide ID as PF, PS and SA parts;
3. Frame type: select the frame as standard type or extension type;
4. Frame format: select the frame as data frame or remote frame;
5. Data: set the data part of CAN frame. Two bits stands for a hexadecimal. Divided by space. The most support 8 bytes data according to CAN definition;
6. Application address: set the register address related to the CAN frame. The address is corresponding to the register address in the configuration software. The data are distributed to the address sequent.
7. Interactive: there are two modes for HMI to process information. One is HMI send the frame to device and then the device get the frame and deal with. The other is the device send the frame to HMI. And then HMI get the frame and deal with.
(1) receive and send: if we select this option, then the HMI will be set as passiveness part. The HMI will response after getting the CAN frame information. If this is not chosen, the effect is contrary.
(2) response mode: include no response, affirm response and data response.
No response: device or HMI won’t receive the response;
Affirm response: the device or HMI will receive affirmed response;
Data response: the device or HMI will receive response with data. Need to set the to-be-separated data in the response frame to be stored in the register address.
(3) response ID: if the address want to receive data in different frame ID, that need to set this option. Choose “different with sent mode” and type in different ID in the blank behind.
Register address edit interface
1. Current address: display the register type and address set in data access interface
2. Trigger condition: based on the two operations of register read and write.
If select read, the address read the data in device. The read mode is repeat-sending the frame that customer set.
If select write, the address writes the data on the HMI to the device. The mode is HMI will send the frame to device once when the HMI is done a write operation.
3. Data operate: set the read and write operation in trigger condition.
If the trigger condition is read-operation, we need to set the position and length of data which current address will get.
If the trigger condition is write-operation, there are two situations.
1.) If not select “add the write data to frame” option, when customer operate write-operation, the set frame will be sent directly;
2.) If select “add the write data to frame” option, when customer operate write-operation, the program will send the data into the frame with position and length.
Position and length format:
1.) If the register address is bit, then the decimal point is required to express the bit address in the register. For example, 1.1 stands for the first bit of the first byte in the eight-byte frame.
2.) If the register address is byte, then we need only integral number to stand for it. For example, 1 stands for the first byte in the eight-byte frame. The length unit is byte.
4. Add: add the current setting.
5. Close: close the dialog box.
Example
1. set a CAN frame for communication
http://www.wecon-tech.com/n1789742/Open+CAN+instruction.htm