NT Link Communications. Omron CQM1H -SCB41
Anuncio
Anuncio
SECTION 8
NT Link Communications
This section describes the procedure and other information required to use 1:N-mode and 1:1-mode NT Links to
Programmable Terminals (PTs).
8-1-1 NT Links — 1:N Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-1-2 NT Links — 1:1 Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
115
Overview of NT Links
Section 8-1
8-1 Overview of NT Links
This section explains the application of a Serial Communications Board for an
NT Link in either 1:N or 1:1 mode. For details on the operation of the PT, refer to the operation manual for the PT.
Note In an NT Link using 1:N mode, a PC can be connected to either one or more than one PTs. There is no difference in functionality determined by the number of PTs connected. The 1:1 mode, however, uses a different communications protocol from the 1:N mode and these two modes are not compatible.
8-1-1 NT Links — 1:N Mode
A PC can be connected to one or more Programmable Terminals (PTs) using an RS-232C or RS-422A/485 port. The I/O memory of the PC is allocated as a Status Control Area and a Status Notification Area for the PT, as well as to objects, such as touch switches, lamps, and memory tables. This enables the status of the I/O memory in the PC to be controlled and monitored by operations from the PT, without the use of ladder programming in the PC. One PC can be connected to up to eight PTs.
The user does not need to be aware of the 1:N NT Links commands. All that is necessary is to allocate PC memory for the PTs.
Serial Communications Board
Serial Communications Board
1:N connections
1:1 connection
PT
PT PT
8-1-2 NT Links — 1:1 Mode
Although the functionality of an NT Link in 1:1 mode is the same as an NT
Links in 1:N mode, only one PT can be connected to the PC. The 1:1 mode is not compatible with the 1:N mode as a communications protocol.
Serial Communications Board
1:1 connection
PT
8-1-3 Precautions
1,2,3...
1.
Set the serial port on the PT to a 1:N NT Link whenever the Serial Communications Board is set to a 1:N NT Link, and set the serial port on the
PT to a 1:1 NT Link whenever the Serial Communications Board is set to a 1:1 NT Link. The Serial Communications Board will not be able to communicate if the PT port is set to a different mode.
2.
The NT20S, NT600S, NT30/30C, and NT620S/620C/625C cannot be used if the cycle time of the PC is 800 ms or longer. This is true in both 1:1 and 1:N mode (even when a 1:1 connection is used in 1:N mode).
116
Overview of NT Links
Section 8-1
3.
The Programming Console functions of the PT (Expansion Mode) cannot be used when connected to Serial Communications Board ports. They can be used only by connecting to the peripheral port or RS-232C port on the
CPU Unit. This is true in both 1:1 and 1:N mode.
4.
When using 1:N-mode NT Links, set a unique unit number for each PT connected to the same PC. If the same unit number is set for more than one PT, malfunctions will occur.
5.
The number of PTs that can be connected to one port in 1:N mode is limited by the CPU Unit’s cycle time when a Serial Communications Board is used, as shown in the following diagrams. Although some communications will be possible even if these restrictions are exceeded, communications errors will occur depending on the PT operating conditions and communications load. Always abide by these restrictions when using 1:N mode.
Example for NT31/NT631(C) PTs
Priority
Registered
PTs per port
CPU Unit's cycle time (ms)
Priority Not
Registered
PTs per port
CPU Unit's cycle time (ms)
117
Application Procedure
Section 8-2
6.
With some PTs, timeout settings can be changed to eliminate some of the communications errors. Refer to the operation manual for the PT for details. This is true in both 1:1 and 1:N mode.
7.
If more PTs are required by the system than allowed by the above restrictions in 1:N mode, connect the PTs in smaller groups to different ports.
8-2 Application Procedure
1,2,3...
1.
Turn OFF the power supply to the PC.
2.
Mount the Board.
3.
Connections
Connect the external devices using RS-232C or RS-422 cables. The
TERM and WIRE switches on the front panel of the Board must be set if the Board is connected using the RS-422A/485 port.
The CPU Unit can be connected to a Programming Console, the CX-Programmer, or the CX-Protocol as required.
4.
Turn ON power.
5.
Set the PC Setup settings for the Serial Communications Board.
Use a Programming Console, the CX-Programmer, or the CX-Protocol to set the settings in the PC Setup between DM 6550 and DM 6559.
Note The settings stored in these words are read constantly; the PC does not need to be restarted or reset when changes are made to the settings. They will be updated automatically as soon as they are changed.
NT Link Settings for 1:N Mode
The following table shows the settings for connecting more than one PT when the highest PT unit number is 5.
Port 1
DM 6555
Port 2
DM 6550
Bit(s)
00 to 07
Setting
--Not used.
Function
08 to 11 5 (BCD) Maximum Programmable Terminal unit number
1 to 7 (BCD)
NT Link in 1:N mode
12 to 15 5 Hex Communications mode
NT Link in 1:N mode
DM 6556 DM 6551 00 to 15 ---
DM 6557 DM 6552 00 to 15
DM 6558 DM 6553 00 to 15
DM 6559 DM 6554 00 to 15
Not used.
Port Settings are always the same for 1:N-mode NT Links. Settings of the start bits, stop bits, parity, and baud rate are not necessary and will be ignored.
Set the communications mode to a 1:N-mode NT Link (5 Hex).
Up to 8 PTs can be connected in 1:N mode. Set the highest unit number of the PTs to be connected as the maximum Programmable Terminal unit number.
NT Link Settings for 1:1 Mode
The following table shows the settings for a 1:1-mode NT Link.
Port 1 Port 2 Bit(s) Setting
DM 6555 DM 6550 00 to 11 ---
12 to 15 4 Hex
Function
Not used.
Communications mode
NT Link in 1:1 mode
118
Connections
Section 8-3
Port 1 Port 2 Bit(s) Setting
DM 6556 DM 6551 00 to 15 ---
DM 6557 DM 6552 00 to 15
DM 6558 DM 6553 00 to 15
DM 6559 DM 6554 00 to 15
Not used.
Function
Port Settings are always the same for 1:1-mode NT Links. Settings of the start bits, stop bits, parity, and baud rate are not necessary and will be ignored.
Set the communications mode to a 1:1-mode NT Link (4 Hex).
6.
Operate the system.
Refer to the operation manual for your PT for operating instructions.
8-3 Connections
The connection examples in this section show only the basic connection diagrams. We recommend that appropriate noise countermeasures be taken in actual applications, including the use of shielded twisted-pair cables. Refer to
2-3 Wiring for actual wiring methods.
Direct 1:1 Connection from RS-232C to RS-232C Ports (1:1 or 1:N Mode)
Serial Communications
Board
Signal
FG
FG
SD
RD
RS-232C
Interface
RTS
CTS
5V
DSR
DTR
SG
Pin
Hood
D-sub, 9-pin connector (male)
PT
Pin
Signal
Hood
FG
--
SD
RD
RTS
CTS
5V
--
--
RS-232C
Interface
SG
D-sub, 9-pin connector (male)
• Communications Mode: 1:1 or 1:N-mode NT Link
• OMRON Cables with Connectors:
XW2Z-200T-1: 2 m
XW2Z-500T-1: 5 m
Direct 1:1 Connection from RS-422A/485 to RS-422A/485 Ports (1:1 or 1:N Mode)
Serial Communications
Board
Short piece
Signal
Signal Pin
RS-422A/
485 Interface
RS-422A/
485 Interface
Hood
D-sub, 9-pin connector (male)
Functional ground
Terminal block or
D-sub connector
• Communications Mode:1:1 or 1:N-mode NT Link
Note Serial Communications Board settings: Terminating resistance ON, 4-wire.
119
Connections
1:N, 4-wire Connections from RS422A/485 to RS422A/485 Ports (1:N Mode)
Serial Communications
Board
Signal
Pin
RS-422A
/485 Interface
Hood
D-sub, 9-pin connector (male)
Signal
PT
RS-422A
/485 In- terface
FG
Terminal block or
D-sub connector
Short bar
Signal
PT
Section 8-3
RS-422A
/485 Interface
FG
Terminal block or
D-sub connector
Communications Mode: 1:N NT Link
Note Serial Communications Board settings: Terminating resistance ON, 4-wire.
1:N, 2-wire Connections from RS-422A/485 to RS-422A/485 Ports (1:N Mode)
Serial Communications
Board
Signal
Pin
RS-422A/
485 Interface
Signal
PT
RS-422A
/485 Interface
Hood
D-sub, 9-pin connector (male) FG
Terminal block
Short bar
Signal
PT
RS-422A
/485 Interface
FG
Terminal block
Communications Mode: 1:N NT Link
Note Serial Communications Board settings: Terminating resistance ON, 2-wire.
120
Descargar
Anuncio