15/10/09

PART 1 T1-16S Programmer Port Function


1.1 Computer link function
The T1-16S’s programmer port mendukung computer link function sama baiknya komunikasi dengan programming tool.
The programmer port dapat menerima T-series computer link commands. By preparing the communication software based on the protocol described in this manual in the master computer (computer, operator interface unit, etc.), the following functions become available by the master computer.
• Reading data (register/device value) from the T1-16S
• Writing data (register/device value) into the T1-16S
• Monitoring the T1-16S’s operation status (RUN/HALT/ERROR)
• Reading the error code from the T1-16S
• Reading the clock/calendar data from the T1-16S
• Writing the clock/calendar data into the T1-16S
• Controlling the T1-16S operation mode
• Program up-loading from the T1-16S
• Program down-loading into the T1-16S
Using the computer link function, you can connect a master computer or an operator interface unit with the T1-16S, and can configure a SCADA/MMI system.

1.2 System configuration
The interface of the T1-16S’s programmer port is RS-232C. Without using a conversion adapter, the RS-232C serial port of the master computer can be connected to the T1-16S’s programmer port directly. (One-to-one configuration)
One-to-one configuration:

On the other hand, when two or more T1-16S’s are connected with a master computer, the multi-drop adapters (CU111) can be used. (One-to-N configuration)
One-to-N configuration:


  • The CU111 is the RS-232C/RS-485 converter dedicated for the T1-series PLC.
  • If the master computer has RS-232C interface but not RS- 485, the RS-232C/RS-485 converter (ADP-6237B) can be used.

1.3 Communication overview
In the computer link system, the T1-16S waits for receiving a request message issued from the master computer. When a request message is issued, the T1-16S checks the station number contained in the request message. And when the station number designation matches the T1-16S’s station number setting, the T1-16S processes the request and returns the response. This is why each T1-16S must have a unique station number in the one-to-N configuration. Otherwise, more than one T1-16S may attempt to process the request, resulting in faulty response. The following figure illustrates the processing sequence executed when a request to station number 3 is issued.

1. The request message is sent from the master to all the connected T1-16S. (request for station #3 in this example)
2. The request message is interpreted and processed in the T1-16S which has the same station number as request. (station #3 T1-16S in this example)
3. Processing result is returned as response to the master.
Note: Available station number is 1 to 32. The station number is set in the special
register SW36. Refer to sections 4.1.

2.1 Transmission specifications

Note:
(1) The station number and parity (odd or none) can be set by user. Transmission speed, start bit, data bit, and stop bit settings are fixed as above. Refer to sections 4.1 and 4.2.
(2) The response delay time can be set by user. (0 to 300 ms, 10 ms units) Refer to section 4.3.

2.2 Optional computer link cable
The 2 m cable used to connect the T1-16S’s programmer port connector with a master computer is optionally available. (Type: PT16S)

Note: Wires of pins 1, 2 and 3 are not used for RS-232C transmission. Do not connect these wires.
3.1 One-to-one configuration
When one T1-16S is connected to a master computer, the cable connections should be as follows. The optional computer link cable (PT16S) is used for the connection.

• Wires of brown, red and orange should not be connected. These wires should be terminated without connecting each other.
• RTS signal of the T1-16S is always ON.
• The T1-16S can transmit data when CTS signal is ON.
Using the multi-drop adapter CU111, one-to-one connection via RS-485 is also available. In this case, the RS-232C/RS-485 converter ADP-6237B can be used.

• Short RXA and TERM (TRM) terminals at both the CU111 and the ADP-6237B.
• Use shielded twisted-pair cable for noise immunity. The cable shield should be connected to ground.
3.2 One-to-N configuration
By using the multi-drop adapter CU111, two or more T1-16S’s (up to 32) can be connected to a master computer. In this case, the RS-485 transmission line should be terminated at both ends.

Termination resistors (1/2 W - 220 Ω) should be connected between TXA and TXB, and RXA and RXB, at each end of the line (at both termination stations).

• Connect termination resistors (1/2 W - 220 Ω) between TXA and TXB, and RXA and RXB, at each end of the line (at both termination stations).
• Use shielded twisted-pair cable for noise immunity. Connect the cable shield each other, and connect it to ground. (Single point grounding)
• When a terminal block is used to branch off the line, the branch should not exceed 3 m cable length from the terminal block to the CU111 or the master computer.
• For RS-232C side connections, refer to section 3.1.
4.1 Station number setting
The station number is set by writing the data into the special register SW36. The valid station number data is 1 to 32 (decimal). Turn the T1-16S to HALT mode, and write the station number into SW36. After writing, execute the EEPROM write command. And cycle power off and on again. Then the setting will be effective.

Note:
(1) The default setting of the station number is 1.
(2) If the data is out of the valid range, the T1-16S works as station 1.
The SW36 setting is saved in the program storage module RM102 (ver. 2 or later). Therefore, when you save the T1-16S program into the RM102 then load it into another T1-16S, the original SW36 setting will be copied. However, in case of the T-PDS, the SW36 setting is not saved in the disk file. Therefore even when you load the T1-16S program by the T-PDS, you must set the SW36 data for the T1-16S manually as mentioned above.
4.2 Parity setting
Parity setting can be selected either odd or none. The even parity is not supported. The default is odd parity. The none parity is normally used for modem connection. The parity is set by writing the data into the special register SW37. The valid data is 1 or 2. Turn the T1-16S to HALT mode, and write the parity setting (0 = none, 1 = odd) into SW37. After writing, execute the EEPROM write command. And cycle power off and on again. Then the setting will be effective.

(1) The default setting of the parity is odd.
(2) If the data is out of the valid range, the T1-16S works as odd parity.
The SW37 setting is saved in the program storage module RM102 (ver. 2 or later). Therefore, when you save the T1-16S program into the RM102 then load it into another T1-16S, the original SW37 setting will be copied. However, in case of the T-PDS, the SW37 setting is not saved in the disk file. Therefore even when you load the T1-16S program by the T-PDS, you must set the SW37 data for the T1-16S manually as mentioned above.
4.3 Response delay time setting
The response time from the programmer port of the T1-16S can be changed. The possible setting is as follows.
Internal processing time + (0 to 300) ms (10 ms units)
This function is useful when a wire-less modem is used. To set the response delay time, turn the T1-16S to HALT mode, and write the delay time (0 to 30) into SW38. After writing, execute the EEPROM write command. And cycle power off and on again. Then the setting will be effective.

(1) The default setting is 0. (Minimum delay)
(2) If the set data is out of the valid range, it is limited by 30 (300 ms).
The SW38 setting is saved in the program storage module RM102 (ver. 2 or later). Therefore, when you save the T1-16S program into the RM102 then load it into another T1-16S, the original SW38 setting will be copied. However, in case of the T-PDS, the SW38 setting is not saved in the disk file. Therefore even when you load the T1-16S program by the T-PDS, you must set the SW38 data for the T1-16S manually as mentioned above.
4.4 Peripheral support priority mode
In the T1-16S, the peripheral support processing (computer link service) is executed at the bottom of each scan with the time limit of 2 ms to minimize the extension of the scan time. However the T1-16S can work with the peripheral support priority mode. In this mode, the computer link service is executed without a break. By using this mode, the communication response becomes quick although the scan time may be extended at the time.
To select the peripheral support priority mode, set the special relay S158 to ON by user program.



5 komentar:

Anonim mengatakan...

I inclination not acquiesce in on it. I assume warm-hearted post. Expressly the appellation attracted me to read the unscathed story.

Anonim mengatakan...

Good brief and this enter helped me alot in my college assignement. Gratefulness you as your information.

Anonim mengatakan...

It isn't hard at all to start making money online in the underground world of [URL=http://www.www.blackhatmoneymaker.com]blackhat hacking[/URL], It's not a big surprise if you have no clue about blackhat marketing. Blackhat marketing uses not-so-popular or little-understood methods to build an income online.

Anonim mengatakan...

You are definitely right

Anonim mengatakan...

I apologise, but, in my opinion, you are mistaken. Let's discuss it. Write to me in PM.