Communications with PLC by Direct Connection
Section 1-4
1-4 Communications with PLC by Direct Connection
1-4-1 Functions of the Allocated Bits and Words
When using an NT20-ST121 @ with the direct connection function (host link or
NT link), the elements displayed on the NT20 and the NT20 status can be allocated to the bits and words of the PLC. By changing the contents of the bits and words, the NT20 can be controlled by the PLC. It is also possible to send data to the PLC by pressing the touch switches on the NT20.
• Controlling the NT20 by a PLC
The following NT20 functions can be controlled by a PLC.
Screens:
Memory tables:
Display of designated screens, confirmation of screen numbers, etc.
Writing to a memory table, copying from a memory table entry to another memory table entry, etc.
Lamps and touch switches: Display instructions, confirmation of display status, etc.
System control:
• Notifying the PLC from the NT20
Data in the NT20 is sent to a PLC when a touch switch is pressed. The following types of data are sent to a PLC.
• NT20 status
Buzzer ON/OFF, backlight ON/OFF, and other NT20 status
• Touch switch status
• Numerical values input with touch switches by using the numeral setting function
• Changes in a memory table after copying between memory table entries
Functions of Display Elements
• Lamps
Allocation destination: Bit
Lamp #1 (Bit 000100)
NT20 PLC
Lit
Unlit
Switch 1: ON (Bit 000100)
Switch 2: OFF (Bit 000101)
Lamp #2 (Bit 000101)
PLC’s bit status is displayed by the “Lamp” on the NT20.
The lamp comes on (flashes) when the PLC’s bit status (lamp bit) is ON
(1), and goes off when it is OFF (0).
10
Communications with PLC by Direct Connection
• Touch Switches
Allocation Destination: Bit
Touch switch
12 Bit 009012
NT20 PLC
Section 1-4
Bit 009012: ON
The lamp comes on (flashes) when the PLC’s control bit is ON (1) and goes off when it is OFF (0). When the touch switch is pressed, the PLC’s notification bit comes ON (1) or goes OFF (0).
• Numeral Memory Table
Allocation destination: Word
Numeral memory table entry 1 (TIM003)
NT20
PLC
Numeral memory table entry 150 (word 0005)
Allocate the numeral memory table entries to arbitrary words in the PLC. If word contents change when corresponding numeral memory table entry is displayed on the screen, the value on the screen will also change. Monitoring of words can also be made easily.
Reading and writing are executed so that the contents of allocated words and contents of numeral memory table entries are always the same during display.
• Character-string Memory Table
Allocation destination: Word
NT20 PLC
("a", "b")
("c", "d")
("e", "f")
Character-string memory table entry 1
Allocated word number: 3
First word: DM0100
Allocate character-string memory table entries to arbitrary words in the
PLC. If word contents change when corresponding character-string memory table entry is displayed on the screen, the value on the screen will also change. Messages can be displayed easily.
Reading and writing are executed so that the contents of allocated words and contents of character string memory table entries are always the same during display.
11
Communications with PLC by Direct Connection
Section 1-4
Functions of the PT Status Control Area (PLC to NT20)
The “PT status control area” is used to control the NT20 status. When data is written to this area in the PLC, the NT20 reads the contents and operates according to the contents.
Example of the PT Status Control Area Application
When data is written to the PT status control area, the NT20 will operate as given below.
Screen 3 display
NT20 PLC
Continuous buzzer sound
PT status control area
Screen switch setting
Memory table entry
Copy setting
PT status control bits
Numeral memory table entry 50
Copy
Numeral memory table entry 7
Functions of the PT Status Notify Area (NT20 to PLC)
The “PT status notify area” is used to notify the PLC of changes of the NT20 status. When a change is made in the NT20 status, the change is written to this area in the PLC. By reading the data from the area, the NT20 status can be checked.
Example of the PT Status Notify Area Application
When a change is made in the NT20 status, such change will be indicated in the PT status notify area as described below.
NT20 PLC
12345678
Numeral memory table entry 13
12345678
PT status notify area
Currently display screen
Updated memory table entry
PT status
Allocated word (numeral table entry 13)
12345678 Start
Start + 1
1-4-2 Connecting to PLC from Other Companies
The NT20 can be connected to PLCs from other companies using the computer link method.
Connectable PLCs
The NT20 can be connected to the following PLCs.
• Mitsubishi A-series Sequencers (via Computer Link Unit)
• Mitsubishi FX-series Sequencers
Refer to the PLC Connection Manual (Cat. No. V042) for connection methods.
NT Series Support
Software
The following Support Software is required when connecting PLCs from other companies.
Support Software: NT-ZJCAT1-EV4(S) (NT Series Support Software for
Windows, Version 4.
@)
12