Beruflich Dokumente
Kultur Dokumente
-1 CIMON-PLC RS232C
Contents
Chapter 1 Introduction
Introduction ..5
Chapter 2
Definitions
Chapter 3
Specifications
3.1 Structure..9 3.2 General Specifications. .10 3.3 Module Specifications.11 3.3.1 Module Specifications...11 3.3.2 Cable Specifications..11 3.3.3 Termination Register..11
Chapter 4
Operation Setup
4.1 Operation Mode Setup. .12 4.1.1 Independent Mode of Channel Operation12 4.1.2 Linked Mode of Channel Operation..13 4.2 Series Interface Method.14 4.2.1 RS-232C Interface. .....14 4.2.2 Communication Card Setup....18
-2 CIMON-PLC RS232C
Chapter 5
System Configuration
5.1 1:1 Link(1)...31 5.2 1:1 Link(2)...32 5.3 1:2 Link(1). 33 5.4 1:2 Link(2).. 34 5.5 1:N Link(1)..35 5.6 1:N Link(2)..36 5.7 1:N Link(3)..37 5.8 1:N Link(4). 38 5.9 N:M Link(1).39 5.10 N:M Link(2).. 40
6.4.3 Modem Link100 6.4.4 CICON Link Service through Modem.101 6.5 Leased Line Modem Communications....103 6.5.1 Outline.103 6.5.2 Leased Line Modem Specifications103 6.5.3 Modem Link Method...103 6.6 Modbus Protocol Service.. ..104 6.6.1 Outline.104 6.6.2 Parameter Setup104 6.6.3 Modbus Command105 6.6.4 Address Map..106 6.7 RS485 PLC Link Service.. ..107 6.7.1 Outline..107 6.7.2 Processing the Sent Data and the Received Data under PLC Link ...107 6.7.3 Setting up the PLC Link Parameter.....109
Chapter 7
7.1 Order of Installation.. 114 7.2 Safety Precautions.. ..114 7.3 Testing ..117
Chapter 8
Troubleshooting
8.1 Error Codes.119 8.2 Error in Hardware. 120 8.2 Error in Exclusive Communications.121 8.3 Error in Modem Link when Linking the CICON..122
-4 CIMON-PLC RS232C
Chapter 1 Introduction
This manual is the technical details about RS232C/422(Computer Network) module among the network modules for CIMON-PLC system. In this module, the function of the link with diverse communication devices, such as other makers PLC and PC, with the protocols of different types and the function of modem communication to control a PLC at a long distance are furnished. The features are as follows.
As other makers protocols are written to use RS-232 channel and RS-422(RS-485) channel each, independent operation is available by protocols. It is available to use an exclusive protocol to read/write data. The function of the exclusive communication suitable for multi-drop configuration of 32 units access as maximum is offered. As modem communication function is built in, a PLC at a long distance can be controlled through exclusive communication. Baud rate can be set up in the range from 300bps to 38400bps variously. It is available to set up RS232C / RS422(RS485) communication port as independent channel or linked channel. 1:1 / 1:N / N:M communication (In case RS422 channel is used) are supported. Full Duplex(RS422) and Half-Duplex(RS485) communication method are supported. RS485 multi-drop communication system can be configured, using RS485 channel.
-5 CIMON-PLC RS232C
Chapter 2
2.1 Communication Method
Definitions
1) Simplex This communication method is that the flow of information is always constant in one direction. Information cannot be transferred in reverse direction.
2) Half Duplex As one-wire cable is used, this communication method is that information can be transferred in both directions not at the same time, but at regular intervals.
3) Full Duplex As two-wire cable is used, this communication method is that data can be sent and received at the same time.
2.2
Sending Method
According to rate, safety and economical efficiency when data are sent, sending method is classified into series sending and parallel sending. Advantage, disadvantage and features for each method are described as follows.
1) Series sending This method is to send data bit by bit through one cable. Though baud rate is slow, installation cost is cheap and software is simple.
2) Parallel sending This method is used for a video card or a hard disc in a computer and is to transfer data by one byte (8 bits). Though baud rate is fast and data is transferred exactly, there is disadvantage that the longer sending distance is, the higher installation cost is.
3) Protocol This is the communication rule prescribed in advance between a sending party and a receiving party to send and receive efficient and confident information without error among more than two (2) computers and terminal units.
-6 CIMON-PLC RS232C
4) Asynchronous method This method is to send word by word in synchronism in case of series sending. Start bit is sent in front of one character and the character code is sent. Finally, Stop bit is sent.
5) Node This is the location where the data in the tree structure of a network is. Each node is composed of the device storing data and the pointer device for sub-node.
6) BPS(Bits Per Second) and CPS(Characters Per Second) BPS means the number of sending bits in a second. CPS, the abbreviation for characters per second, is the unit of printer speed and means the number of the characters printed by a printer in a second.
7) Packet This is a bundle of the data used when sending data. The data communicated between two stations is divided into suitable-size Packets and the packets are sent one by one. Packet includes the information about control such as receiving party, address or control code as well as a certain-size data.
8) Port This is the part of the computer used to communicate with other devices. In case of computer link communication, this means RS-232C port or RS-422(485) port.
9) RS-232C This, one of the communication interface codes established by Electronics Industry Association (EIA), is mainly used to link with diverse devices such as computer, terminal unit, printer, floater and modem. And this is a synchronous series communication interface or an asynchronous series communication interface. There is the disadvantage that sending distance is short and only one to one communication is available, but cost is cheap.
-7 CIMON-PLC RS232C
10) RS-422 / RS-485 This, one of series communication interfaces such as RS-232C, is used in longer sending distance than the one of RS-232C and one to N access is available. RS422(1:N) is used for Full Duplex communication with 4 signal lines and RS-485(N:M) is used for Half Duplex communication with 2 signal lines.
11) BCC (Block Check Character) As series sending may send distorted signal due to the influence of noise to sending line, this is the data that is for a receiving party to decide whether signal is normal or distorted. A receiving party calculates the data received up to the front of BCC and compares the result with received BCC to decide whether signal is normal or not.
12) FRAME This, the constant-size data sent in data communication, includes additional information such as destination code, control character for synchronism, parity or CRC to detect an error as well as data.
-8 CIMON-PLC RS232C
Chapter 3
3.1 Structure
(1) CM1-SC02A
Specifications
CM1-SC02A
RUN RX TX ERR RS232C RUN RX TX ERR RS422
LED Indicator
RS-232C
RS-232C Connector
RS-422/485 Connector
NO
SDB SG FG
Description Indicates operation status. RS-232C connector to connect with an outer device RS-422/RS-485 connector to connect with an outer device
1 2
-9 CIMON-PLC RS232C
Shock
IEC 1131-2
Vibration
In case of continuous vibration Frequency Acceleration 10 f < 57Hz 57 f 150Hz 4.8 m/s2 Square wave impulse noise
KDT Test Standard IEC 1131-2, IEC 801-2 IEC 1131-2, IEC 801-3
Noise
9 10 11
- 10 CIMON-PLC RS232C
CM1-SC01A RS232C
Communication using a leased-line modem Remote communication using a dial-up modem Communication using user protocol Communication using exclusive protocol Communication using Modicon protocol Controls a PLC, using link function in the CICON 7 or 8 bits 1 or 2 bits Even / Odd / None Asynchronous 300bps / 600 / 1200 / 2400 / 4800 / 9600 / 19200 / 38400bps Long-distance communication linking modem
Data Bit Data Type Stop Bit Parity Synchronous Type Baud Rate Modem Link Function
- 11 CIMON-PLC RS232C
Chapter 4
4.1 Operation Mode Setup
Operation Setup
Independent mode and linked mode are used as communication operation mode. Default is independent mode.
CM1-SC02A
RUN RX TX ERR RS232C SYS RX TX ERR RS422
RS-232C
RS-232C
TX
RX
RS-422
TX
RX
RS-422
- 12 CIMON-PLC RS232C
RS-232C RS-232C
TX
RX
RS-422
RS-422
TX
RX
- 13 CIMON-PLC RS232C
CD
RXD
Outside to inside
TXD
Inside to outside
Signal wire that DTE informs DCE about the state that DTE is able to send and receive
Ground wire for signal Signal wire that DCE informs DTE about the state that DCE is able to send and to receive DTE is ready and requests DCE to send data. Signal wire that DCE inform DTE about the state that DCE is able to send Signal wire that DCE inform DTE of receiving RING
DSR
Outside to inside
RTS
Inside to outside
8 9
CTS RI
1) Connection with a modem A long-distance communication is available. In [Table 4-2], the modem interface is described.
Modem
Computer
- 14 CIMON-PLC RS232C
[Table 4-2] PLC(RS-232C) Signal Direction Pin 1 2 3 4 5 6 7 8 9 Name CD RXD TXD DTR SG DSR RTS CTS RI Name CD RXD TXD DTR SG DSR RTS CTS RI Pin No. 8 3 2 20 7 6 4 5 22 Modem
2) Connection with a null modem PLC and Computer/Communication device: There are 3-wire type and 7-wire type.
[Picture 4-1]
C net CD R XD TX D D TR SG D SR R TS C TS RI
PC R TS C TS TX D R XD D SR SG D TR CD RI
- 15 CIMON-PLC RS232C
In case that a PC is connected with a RS-232C connector, RXD, TXD and SG is to be connected in 3-wire type.
[Picture 4-2]
3) RS-422 Interface A 6-pin connector is used for RS-422 interface. The functions and names of the pin and the flow of data are described as follows.
[Table 4-3] Pin No. 1 2 3 4 5 6 Name SDA SDB RDA RDB S.G F.G Direction of Signal PLC Device Function Sends data. (+) Sends data. (-) Receives data. (+) Receives data. (-) Ground wire of signal Ground wire of frame
- 16 CIMON-PLC RS232C
RS-422 channel can be connected with other device for RS-422 and RS-485 (Multidrop). [Table 4-4] and [Table 4-5] are described for both cases.
[Table 4-4] Computer Link Pin No. 1 2 3 4 5 6 Name SDA SDB RDA RDB S.G F.G Direction of Signal PLC Device Outside Communication Device RDA RDB SDA SDB S.G F.G
The following is an example to connect RS-485 channel with an outside device. At this time, as a sending wire shares with a receiving one (Half Duplex), the channel mode is to be set up as RS-485.
[Table 4-5] Computer Link Pin No. 1 2 3 4 5 6 Name SDA SDB RDA RDB S.G F.G Direction of Signal PLC Device Outside Device SDA SDB RDA RDB S.G F.G
- 17 CIMON-PLC RS232C
[Table 4-6 Parameters] Item Communication Channel Baud Rate Data Bit Type of Data Stop Bit Parity Station Number RS-232C Channel Mode RS-422 Channel Mode Communication Mode Operation Mode Default Value Set Value
RS-232C / RS422 38400BPS / 38400BPS 8 bits / 8 bits 1 bit / 1bit None/ None 255 / 255 Null Modem RS-422 User Communication Independent
RS-232C / RS-422 / RS-485 300bps/600/1200/2400/4800 /9600/19200/38400bps 7 bits or 8 bits 1 bit or 2 bits None / Even / Odd Parity 0 ~ 31, 255 Null Modem/Leased-line Modem/Dial-up Modem RS-422 / RS-485 User /Exclusive /CICON/ MODBUS /PLC Link Independent / Linked
- 18 CIMON-PLC RS232C
2) Parameter Setup Method a. Use a graphic loader (CICON). a. Select the menu to run the CICON and a project.
If a PLC is linked with the graphic loader, the icons by the link icon will be active. The message have linked with PLC will appear on the message window.
c.
If the PLC is linked and the icons are active, select the Tools -> Optional Card.
- 19 CIMON-PLC RS232C
- 20 CIMON-PLC RS232C
d. The Optional Card Setup dialog box where card type and location can be selected will appear.
Card Type Select the type of an optional card. Available cards are Ethernet, RS232/422, AD Converter, DA Converter, TC, RTD, High Speed Counter and Positioning. Here, select RS232C/422 module.
Location This shows the mounted location of an optional card. The base number and the slot number can be set up. If an optional card is mounted on an expansion base (The base where a expansion card is mounted), select the base where the optional card is mounted among 15 expansion bases from Expansion #0 to Expansion #15.
Base If an optional card is mounted on not the base where an expansion card is mounted but the base where a CPU card is mounted, the Base is to be set up as the Local. If an optional card is mounted on the base where an expansion card is mounted, select Expansion #N (the base where an optional card is mounted) as Base.
Slot No. This is used to set up the number of the slot where a card is mounted. The slots are numbered from the slot next to CPU in due order like Slot 0, Slot 1, In case of expansion base (The base where an expansion card is mounted), the slots are numbered from the slot next to the slot (0) where an expansion card is mounted. If the dialog box is set up, press the OK.
- 21 CIMON-PLC RS232C
e. In RS232C/422 Card Setup dialog box, various parameters are to be set up to communicate by channels. Communication type, operation mode, communication parameters and dial-up modem can be set up.
Channel 1
Communication Method Null Modem : This is used to communicate with a PC at a long distance through a RS-232C cable by a virtual modem. Leased Line Modem : CIMON-PLC leased-line modem is used for a longdistance communication. Dial-up Modem : External type modem is used for the communication between a PC and a PLC at a long distance.
- 22 CIMON-PLC RS232C
Comm. CH
Application Used in case of link with the CICON at a long distance by dial-up line. Used in case of communication by direct cable connection
RS-232C
Null Modem
Used in case of modem communication by leased line. Used in case of 1:N communication in the Full Duplex with outside device. (Within 500m) Used in case of N:M multi-drop communication in the Half Duplex method. (Within 500m)
Action Mode Protocol : User Protocol : Users write a protocol directly to communicate. HMI Protocol : CIMON-PLC exclusive protocol is used to read and write the data of a PLC. This is the communication between a PC at a long distance and a PLC. CICON Protocol : A PLC can be controlled, being linked with the CICON through RS-232C port. PLC Link Protocol : Each PLC is linked to receive and send data each other. MODBUS RTU Protocol : Modicon Address, a protocol used internationally, is used to communicate. Station No. : Each PLC has its station number to communicate. The number from 0 to 31(32 stations) can be set up.
Communication Parameter Baud Rate : This can be set up in the range from 300BPS to 38400BPS. Detect Error : Even number parity bit and odd number parity bit can be set up as the bit to detect an error. Data Bit : This is used to select the form of communication data. 7 data bits and 8 data bits can be set up. Stop Bit : This is used to select the form of communication data. 1 stop bit and 2 stop bits can be set up.
- 23 CIMON-PLC RS232C
Responding(Sending) Delay : This is used to delay to send a data frame from a PLC Communication module as much as a certain time. In case of linking with a leased line modem to communicate, when the communication is not good, the responding delay time is to be set up suitably. o Dial-up Modem Setup : The modem, which is used for a long-distance communication with a PLC, needs initialization command.
Channel 2
- Communication Method Comm. Method RS422 Description Used in case of 1:N communication in the Full Duplex with outside device. (Within 500m) Used in case of N:M multi-drop communication in the Half Duplex method. (Within 500m)
RS485
- Action Mode Link with Ch 1 : If you select this, each channel is operated not in the independent mode but linked mode.
- 24 CIMON-PLC RS232C
f.
Upload Set Value This is used to read the parameter of a current computer link module from the buffer memory of it.
g. Download Set Value This is used to download the value that users input in communication method, the action mode and the communication parameters for Channel 1 and Channel 2. After downloading, the PLC communicates with currently downloaded parameters.
h. Current Status This is used to show OS Version, Error Code, PLC Link status for RS232C/422/485 module.
b. The above explanation is setup method in the CICON. This time, use user program (IL, LD) directly to set up. The following table shows I/O Points Map. Device Y can be controlled by a user program and Device X is processed by the user command received from a computer link module. So, Device X is not to be controlled. Device X is only for reading.
- 25 CIMON-PLC RS232C
[I/O Point Map] Device X0000 X0001 X0002 X0003 X0004 X0005 X0006 X0007 X0008 X0009 X000A X000B X000C X000D X000E X000F Parameter Applied Modem Initialized Dialing Line Connection
Rx Data Existing(Ch1) Tx Buffer Empty(Ch1) Rx Data Existing(Ch2) Tx Buffer Empty(Ch2)
Device Y0000 Y0001 Y0002 Y0003 Y0004 Y0005 Y0006 Y0007 Y0008 Y0009 Y000A Y000B Y000C Y000D Y000E Y000F
Clear Rx Buffer (Ch1) Clear Tx Buffer (Ch1) Clear Rx Buffer (Ch2) Clear Tx Buffer (Ch2)
If it is confirmed that the Error In Module bit of Device X is set in a user program like the following picture, the Clear Error will be set. And the Error In Module bit will be cleared and the corresponding bit will be reset. If it is confirmed that the Error In Module bit is reset, the Clear Error bit will be reset.
- 26 CIMON-PLC RS232C
Here, as the second 0 from the rear of X0000 or Y0000 indicates slot number, the number of the slot where an optional card is mounted is put on the second. If an optional card is mounted on the fourth slot, the device number will be X0040 and Y0040.
- 27 CIMON-PLC RS232C
- 28 CIMON-PLC RS232C
The user data memory device is divided into the contents set up to an optional card and the memory indicating error code. And set contents are stored in buffer memory and finally are stored in Eprom by I/O Point Map. Parameter Bit 0 1 2 3 4 5 6 7 8 9 10 11~15 System (Reserved) Network Type Baud Rate (0=300, 1=600, 2=1200, 3=2400, 4=4800, 5=9600, 6=19200, 7=38400) Data Bit : 0=7, 1=8 Parity : 0=Even, 1=Odd Parity : 0=None, 1=Use (According to Bit 1 setup) Stop Bit : 0=1 Bit, 1=2 Description