You are on page 1of 9

Chapter 19 N:1 Communication

Chapter 19 N:1 Communication


This is a useful way to make several XGT Panels communicate with one PLC or several PLCs. N:1 communication is available by using RS-485 communication.

19.1 N:1 Communication


Generally, at the serial communication, one XGT Panel communicates with one PLC or several PLCs. Namely, 1:1 or 1:N is available. If you use N:1 communication, several XGT Panels can communication with one PLC or several PLCs. Namely, N:1 or N:M communication is available.

[1:1 communication]

[1:N communication]

19-1

Chapter 19 N:1 Communication

[N:1 communication]

[N:M communication]

19-2

Chapter 19 N:1 Communication

19.2 N:1 Communication Principal


19.2.1 Principal
N:1 communication uses the Token Ring Bus. Always, only one XGT Panel is having a token. Station 0s XGT Panel starts N:1 communication. Then next station start N:1 communication in order of the station number. XP St.0 XP St.1 XP St.2

[Start, when station 0 is communicating] XP St.0 XP St.1 XP St.2

[When station 1 is communicating] XP St.0 XP St.1 XP St.2

[When station 2 is communicating]

19-3

Chapter 19 N:1 Communication

Caution
z z If there is no XGT Panel whose station number is 0, N:1 communication cant start While station 0 is communicating with token after start of N:1 communication, if communication stops because of power cut or some reason, entire N:1 communication stop.

19.2.2 Operating flow diagram


In case of N:1 communication mode, XGT Panel executes N:1 communication as followings. The following diagram is a tough description to help understanding.
Monitor starts

N Slave mode

Is this station 0? Y

Is there the received data? Y

No packet over 2s? Y

Got a token? Y Sends Master State command

Master mode

Monitor 1 scan Y Token Hold? N N Send a token to next node? Y

19-4

Chapter 19 N:1 Communication

19.3 Setup
For N:1 communication, you have to set up the parameter. [Sequence] (1) Select the controller supporting N:1 communication and create a project. (2) Select [Common] [Project Property Setting] on the menu. (3) Select [XGT Panel Settings] (4) Set [Protocol] as RS485. (5) Click [N:1 Settings] button. (6) Check [Use N:1 Communication] and input the parameter.

[N:1 settings dialog box] [Description of the dialog box] Item Use N:1 communication N:1 station number Number of XGT Panel Token Holding time Description Select whether or not using N:1 communication Input N:1 station number. Up to 15 is available. Input the number of XGT Panel participating in N:1 communication. Up to 16 is available. Input the time to take from when _N1_Token_ Hold special device is on to off. Up to 69s is available. _Hold becomes off automatically Token Holding Time after on Token Holding time

_N1_Token_Hold bit On

Get Token

_N1_Token_Hold bit Off

Note (1) [N:1 Settings] button shows when you select the controller supporting N:1 communication. (2) The number of XGT Panel has to be larger than N:1 station number (3) The larger the number of XGT Panel, the poor communication performance

19-5

Chapter 19 N:1 Communication

19.4 Regulation and Restriction


For N:1 communication, there are many regulation. You have to comply with the regulation for normal N:1 communication. z z XGT Panel whose station number is 0 should exist. If there is no station number 0, N:1 communication cant start. All XGT Panel participating in N:1 communication has to have continuous station numbers starting from 0. If there is discontinuity in the station number, there will be delay in communication speed. Ex) When Total number of XGT Panel is 3 and station numbers are 0, 1, and 3 respectively. Duplicated station number is not allowed. In case of this, time out or communication error occurs and data refresh speed goes down noticeably All XGT Panel participating in N:1 communication should have same controller settings. All XGT Panel participating in N:1 communication should have same communication parameter setting except station number, if possible. Detail communication settings such as Protocol, Time out, Wait to send should be same.

z z z

z z z z z z

N:1 communication only supports RS485 communication. If communication line is disconnected while station number 0 XGT Panel is having the token, N:1 communication may stop. So restore the communication line quickly. If _N1_Token_Hold special device is on for long, other stations cant communicate at this time. So smooth communication, Set _N1_Token_Holding time as short When using N:1 communication, [Program Monitor] function is not supported. If you use N:1 communication, PLCs monitor protocol cant be used so communication speed may go down. When simulator operates, N:1 communication doesnt operate

19-6

Chapter 19 N:1 Communication

19.5 Token Hold Function and System Device


N:1 communication is slower than 1:1 communication. It can hold the token instead of sending it to next XGT Panel to increase communication performance temporarily. This function is called Token Hold Function.

19.5.1 How to use Token Hold Function


[Procedure] (1) Select the controller supporting N:1 communication and create the project. (2) Set up the parameter for N:1 communication (3) Add the switch in the basic screen. (4) Use the _N1_Token_Hold with switch device.

(5) Download the project to XGT Panel (6) If you press the above switch, it holds the token and communication performance goes up. Note (1) Instead of switch, you can use Token Hold Function by using script and etc. (2) Token Hold function take effect after XGT Panel has N:1 token (3) Token Hold Function is available temporarily

19-7

Chapter 19 N:1 Communication

19.5.2 N:1 System Device


System devices related with N:1 communication are as follows. When making the project, use the following system device for convenience. Tag name _N1_Token _N1_Token_Hold _N1_Token_Station Device HS0070.0 HS0501.0 HS0071 Type BIT BIT WORD Description If XGT Panel is having the N:1 token, this device will be on. Otherwise it is off. Read only device Device for N:1 Token Hold Function. Read/Write available Station number of XGT Panel having the N:1 token. Read only device.

19-8

Chapter 19 N:1 Communication

19.6 N:1 Communication supported PLC driver


Drivers supporting N:1 communication is as follows. Producer LS Industrial Systems Driver LSIS:XGK(LINK) LSIS:XGI/XGR/XEC(LINK) LSIS:XGB(LINK) LSIS:GM(LINK) LSIS:MASTER-K(80,120,200,300,1000)S(LINK) LS Mecapion:VS/VP Servo Drive MITSUBISHI:MELSEC-A(LINK) MITSUBISHI:MELSEC-QnA, Q(LINK)

LS Mecapion Mitsubishi Electric Corporation

Note (1) Drivers supporting N:1 communication will be continuously added. For information on drivers, contact our custom service center.

19-9

You might also like