显示标签为“protocol”的博文。显示所有博文
显示标签为“protocol”的博文。显示所有博文

2014年7月6日星期日

Wecon hmi Muti-link function and settings

Multi-link provides an economical and flexible solution that allows multiple human-machines to communicate with each other via RS485.In the operation of Multi-link, one human-machine works as a the master, the others work as the slave. Only the master can communicate with the PLC and receive data from it. And the slaves all receive data from the master. Therefore, every slave must have its own station number that allows the master to interact with it, which means interacting with the PLC.


Wecon hmi Muti-link settings:




Ⅰ.Connection Mode

An example of communication between a PLC and four human-machines is shown in the figure below. Note that human-machines usually communicate with each other via RS485 and every slave must have its own station number. When the system has just one slave, human-machines can also communicate with each other via RS232.


Ⅱ. Parameter settings of Multi-link Communication



Here are the operation procedures of setting communication parameters of Multi-link.

1.Select 【System Parameter】/【Connections and communication】, then select “add” in the screen. Select communication interface of Multi-link in the option of “communication interface” and “Multi-Link Protocol”in the option of “device type”.

2. Set the parameters of the master and the slave,the corresponding number and station number of the slave. 
Notes: 
The more slaves, the slower the communication speed may be. 
The station numbers of the slave must be consecutive numbers starting from one without repeating. 
The parameters of the master and the slave must be the same.
The order of the protocol must be the same when choosing the protocol of the master and the slave.

3.After setting the parameters above, select【Tool】/【Project Build】.Then you can download it to the human-machine.


Multi-Link Protocol settings: 



Notes If a system has one master and slaves, we should change the number of the slave in the option of master setting 
 and change the HMI station number in the option of slave setting. 
The station number of HMI increase by one, that is if the number of the slave is two, then the station number of the first slave is one and the second slave is two, etc. Other settings are the same as above.


Ⅲ. Notes

    Please note the following points when using Multi-Link.
1. Please make sure that the projects of the master and the slaves are the same except the parameters of them.
2. The external address used in the scripts must be added to 【Project Configuration】/【System Parameter】/【Multi-Link Extra Address】when using scripts.
3. The interface parameters of the master and the slaves must be the same.
4. The order of the protocol must be the same when choosing the protocol of the master and the slaves.
5. The station numbers of the slaves must be consecutive numbers starting from one without repeating.
6. The more slaves, the slower the communication speed may be.
7. Suggest communicating via RS485 when selecting Multi-Link Protocol. When the system has just one slave, human-machines can also communicate with each other via RS232.
8. The external address used in the scripts must be added to 【Project Configuration】/【Multi-Link Data Area】.

2014年6月29日星期日

Wecon hmi user-defined protocol settings

When current protocols can't meet customer's need, or the customers can't find corresponding protocol to devices(modules) they developed by themselves, hmi user-defined protocol is exactly what the customers need.

Startup of ‘User-defined Protocol

1. Select ‘User-defined Protocol Connection’
2. Open the configuration dialog box of User-defined Protocol
  a. Start from the LEVI communication configuration
  b. Initiate the User-defined Protocol program separately
 

Program interface

.main interface

1. Instruction input: enter the instruction you want to use
2. operation type: chose the operation type of instruction:Read register or write register transmitting check: add transmitting check
3. coding method: point out the coding method of instruction:HEX or SACII
4. other settings:
  a. ‘no returning instruction: appoint that no instruction returns after a specified instruction is sent.
  b. ‘Sending after receiving instruction: appoint that receive  a specified instruction first and then send the instruction.
5. ‘single transmission’instruction: this instruction appoints specified bit to control single transmission
  a. transmission-controlled bit: set transmission-controlled bit of the instruction
6. instruction adding: add an instruction after setting paramaters
7. cancel: cancel the current operation
8. append: append a new instruction
9. modify: modify currently selceted instruction
10. delete: delete currently selceted instruction
11. clearclear all instructions and delete the configuration file
12. instructions list: browse all the adding instructions to be send
13. component addresses list: browse the addresses of adding components,which is in accordance to the sending instructions
14. import: import the configuration file user produces into the project directory
15. export: export the file user has configurated to any location 
16. browse: browse the files user has configurated
17. exit: exit the program

.Sub-interface

Check settings
1. transmit check: add check bits to an instruction
2. return check:
  a. starting position: point out the starting position of the instruction used for check calculation in an return instruction
  b. length: length of the instruction used for check calculation
  c. different with transimt check: set return check when return check is different with transmit check
3. add control characters for an instruction: add control characters for an instruction in ASCII mode

Component settings

The component parameters set in this part is in accordance to the component set in the project.

 
Component type: select bit component or byte component;
Component address: set the component address for the processed instruction
Component word: words for component display
Notes: simple notes on the component

Data/length setting
 
Note:the return data is available to read operation,while the written data is available to write operation.

Return data: point out the data part in a return instruction
  a. location: the location of the data parts first byte in the whole string of  instruction(index from 1)
  b. length: the number of bytes of the data part
written data:
  a. drive improved instruction: in this option,there is no need to set data part and check part for a sending instruction.Instead,it is added by the drive.(currently only support the situation that check part follows closely to data part)
  b. location: similar to the location of return data
  c. length: similar to the length of return data

Instruction length settings
 
Sending length: the program will calculate length based on the sending instruction user has set.
Return length: user sets the length of a sending instructions corresponding return instruction.

Check interface
 
1. entered instructionsthe sending instructions user has set.
2. participated check instructions:instructions used to calculate check bits
3. check type: check type selection
4. calculationcalculate check bits based on the check type selected
5. fetch bits from the results: fetch bits from the check bits calculated
6. instruction synthetisesynthetise the original instruction and check bits
7. results: the instruction to be send which has been added check bits