XGB Cnet English Manual V1.3
XGB Cnet English Manual V1.3
XGB Cnet English Manual V1.3
LSIS strives to maximize customers' profit in gratitude of choosing us for your partner.
Users Manual
Cnet I/F XBL-C41A module XBL-C21A
Read this manual carefully before installing, wiring, operating, servicing or inspecting this equipment. Keep this manual within easy reach for quick reference.
http://eng.lsis.biz
Safety Instruction
Before using the product
For your safety and effective operation, please read the safety instructions thoroughly before using the product. Safety Instructions should always be observed in order to prevent accident or risk by using the product properly and safely. Precautious measures can be categorized as Warning and Caution, and each of the meanings is as follows. This symbol indicates the possibility of serious injury or death if some applicable instruction is violated This symbol indicates the possibility of severe or slight injury, and damages in products if some applicable instruction is violated
Warning
Caution
Moreover, even classified events under its caution category may develop into serious accidents depending on situations. Therefore we strongly advise users to observe all precautions in a proper way just like warnings. The marks displayed on the product and in the users manual have the following meanings. Be careful! Danger may be expected. Be careful! Electric shock may occur. After reading this users manual, it should be stored in a place that is visible to product users.
Safety Instruction
Safety Instructions when designing Warning
Please, install protection circuit on the exterior of PLC to protect the whole control system from any error in external power or PLC module. Any abnormal output or operation may cause serious problem in safety of the whole system. - Install applicable protection unit on the exterior of PLC to protect the system from physical damage such as emergent stop switch, protection circuit, the upper/lowest limit switch, forward/reverse operation interlock circuit, etc. - If any system error (watch-dog timer error, module installation error, etc.) is detected during CPU operation in PLC, the whole output is designed to be turned off and stopped for system safety. However, in case CPU error if caused on output device itself such as relay or TR can not be detected, the output may be kept on, which may cause serious problems. Thus, you are recommended to install an addition circuit to monitor the output status. Never connect the overload than rated to the output module nor allow the output circuit to have a short circuit, which may cause a fire. Never let the external power of the output circuit be designed to be On earlier than PLC power, which may cause abnormal output or operation. In case of data exchange between computer or other external equipment and PLC through communication or any operation of PLC (e.g. operation mode change), please install interlock in the sequence program to protect the system from any error. If not, it may cause abnormal output or operation.
Safety Instruction
Safety Instructions when designing Caution
I/O signal or communication line shall be wired at least 100mm away from a high-voltage cable or power line. If not, it may cause abnormal output or operation.
Safety Instruction
Safety Instructions when wiring Warning
Prior to wiring, be sure that power of PLC and external power is turned off. If not, electric shock or damage on the product may be caused. Before PLC system is powered on, be sure that all the covers of the terminal are securely closed. If not, electric shock may be caused
Caution
Let the wiring installed correctly after checking the voltage rated of each product and the arrangement of terminals. If not, fire, electric shock or abnormal operation may be caused. Secure the screws of terminals tightly with specified torque when wiring. If the screws of terminals get loose, short circuit, fire or abnormal operation may be caused. * Surely use the ground wire of Class 3 for FG terminals, which is exclusively used for PLC. If the terminals not grounded correctly, abnormal operation may be caused. Dont let any foreign materials such as wiring waste inside the module while wiring, which may cause fire, damage on the product or abnormal operation.
Safety Instruction
Safety Instructions for test-operation or repair Warning
Dont touch the terminal when powered. Electric shock or abnormal operation may occur. Prior to cleaning or tightening the terminal screws, let all the external power off including PLC power. If not, electric shock or abnormal operation may occur. Dont let the battery recharged, disassembled, heated, short or soldered. Heat, explosion or ignition may cause injuries or fire.
Caution
Dont remove PCB from the module case nor remodel the module. Fire, electric shock or abnormal operation may occur. Prior to installing or disassembling the module, let all the external power off including PLC power. If not, electric shock or abnormal operation may occur. Keep any wireless installations or cell phone at least 30cm away from PLC. If not, abnormal operation may be caused.
Caution
Product or battery waste shall be processed as industrial waste. The waste may discharge toxic materials or explode itself.
Revision History
Version
V 1.0 V 1.1
Date
2006.6 2007.7 1. First Edition
Remark
Page
-
1. Position and Special function contents separated (1) Position function contents separated (position part published) (2) PID control and Ch. 12 Analog IO module contents separated 2. Contents added (1) Naming standard added (2) Caution when selecting IO module added (3) IO wiring method by using Smart Link board added (4) Installation and wiring contents added 3. Content modified (1) Safety instruction modified (2) System Configuration modified (3) High speed counter function modified (4) External dimension modified
V 1.2
2008.3
1. XGB compact type H type added 2. Built-in communication content separated (1) Ch.9 built-in communication function separated (Cnet I/F user manual)
Ch. 9
V 1.3
2010.3
The number of Users manual is indicated the right side of the back cover. Copyrights 2006 LS Industrial Systems Co., Ltd All Rights Reserved.
The Uses Manual describes the product. If necessary, you may refer to the following description and order accordingly. In addition, you may connect our website(http://eng.lsis.biz/) and download the information as a PDF file.
Relevant Users Manual Title Description It describes how to use XG5000 software especially about online functions such as programming, printing, monitoring and debugging by using XGT series products. It describes how to use the instructions for programming using XGK/XGB series. 10310000510 10310000512 No. of User Manual
XG5000 Users Manual XGK/XGB Series Instruction & Programming XGB Hardware Users Manual
It describes how to use the specification of power/input /output/expansion modules, system configuration and built-in High-speed counter for XGB basic unit. It describes how to use the specification of analog input/analog output/temperature input module, system 10310000920 10310000926
XGB Analog Users Manual XGB Position Users Manual XGB Cnet I/F Users Manual XGB Fast Ethernet I/F Users Manual
configuration and built-in PID control for XGB basic unit. It describes how to use built-in positioning function for XGB unit. It describes how to use built-in communication function for XGB basic unit and external Cnet I/F module. It describes how to use XGB FEnet I/F module. 10310000927
10310000816
10310000873
Contents
2.1 General Specification -------------------------------------------------------------------- 2-1 2.2 Performance Specification -------------------------------------------------------------------- 2-3 2.3 Name and Function of each part ---------------------------------------------------------- 2-5
3.1 XGB System Configuration ------------------------------------------------------------- 3-1 3.1.1 H type system configuration --------------------------------------------------- 3-1 3.1.2 S type System Configuration ---------------------------------------------------- 3-2 3.2 Available System Configuration ------------------------------------------------------ 3-3 3.2.1 1:1 Connection between PC (HMI) (No modem) -------------------------------------- 3-3 3.2.2 1:1 Dedicated modem connection with PC (HMI) ---------------------------------------- 3-6 3.2.3 Modem connection with PC and communication between Cnet I/F modules -------- 3-7
3.2.4 Dedicated communication with PC (HMI) and different type RS-422 communication ----------- 3-8
3.2.5 Optical modem communication for moving material communication ------------------- 3-9
3.2.6 Wireless modem communication for communication between revolution bodies --------------- 3-10
4.1 Setting Sequence of Product ------------------------------------------------ 4-1 4.2 PLC Type Setting and How to Register Communication Module --------------------------------- 4-2 4.2.1 Making new project ---------------------------------------------------- 4-2 4.2.2 In case of off line, method on Cnet I/F module registration -------------------- 4-2 4.2.3 How to register Cnet I/F module in case of online ---------------------- 4-3 4.3 How to Set Basic Parameter ------------------------------------------------------- 4-5 4.3.1 Setting item ------------------------------------------------------------- 4-6 4.2.2 Setting method ------------------------------------------------------------ 4-7
5.1 Server Modbus Service ------------------------------------------------------------- 5-1 5.1.1 General ----------------------------------------------------------------- 5-1 5.1.2 XGT dedicated server -------------------------------------------------------- 5-2 5.1.3 Modbus server -------------------------------------------------------- 5-2 5.2 P2P Service ------------------------------------------------------------------ 5-4 5.2.1 General ------------------------------------------------------------------------------------- 5-4 5.2.2 P2P parameter configuration ----------------------------------------------------- 5-5 5.2.3 Channel information ------------------------------------------------------------ 5-5 5.2.4 Block information ----------------------------------------------------------- 5-7 5.2.5 User defined frame information --------------------------------------------- 5-11 5.2.6 P2P service operation ----------------------------------------------------- 5-21
6.1 Remote Connection ---------------------------------------------------------------- 6-1 6.1.1 General ---------------------------------------------------------------- 6-1 6.1.2 XG5000 remote connection -------------------------------------------------- 6-1 6.1.3 Remote connection between Cnet I/F modules --------------------------------------- 6-8
7.1 XGT Dedicated Protocol ---------------------------------------------------------7.1.1 General ----------------------------------------------------------------7 . 1 . 2 F r a m e s t r u c t u r e - - - - - - - -- - --- - - - -- - - -- - - --- - - - -- - - -- - - --- - - - -- - - -- - - --- - - 7.1.3 List of commands ---------------------------------------------------------7.1.4 Data type ---------------------------------------------------------7.1.5 Detail of instruction ----------------------------------------------------------
8.1 Setting of Cnet I/F module in the XG-PD ------------------------------------------ 8-1 8.1.1 In case of acting as server ------------------------------------------------- 8-1 8.1.2 In case of acting as P2P service (client) -------------------------------- 8-3 8.2 Dedicated Communication Example --------------------------------------------------------------- 8-6 8 . 2 . 1 S e t t i n g s o f X G T s e r ve r - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - 7 8.2.2 Settings of XGT client ----------------------------------------- 8-8 8.2.3 Checking the operation ------------------------------------------------------ 8-11
8.3 Modbus Communication Example --------------------------------------------------------- 8-12 8 . 3 . 1 M o d b u s RT U s e r v e r s e t t i n g - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - 1 3 8.3.2 Setting of Modbus RTU client ----------------------------------- 8-15 8.4 User - defined Communication Example ------------------------------------------------------ 8-20 8.4.1 User-defined communication example system configuration ------------- 8-20 8.4.2 User definition communication frame structure ------------------------------------- 8-21 8.4.3 User definition communication parameter setting --------------------------------------- 8-22
9.1 Diagnosis Function of XG-PD --------------------------------------------------------9.1.1 Checking status of main unit ---------------------------------------------9.1.2 Communication module information -------------------------------------------------9.1.3 Frame monitor --------------------------------------------------------------------9.1.4 Status by service -----------------------------------------------------------------------
9.2 Trouble Shooting by Error ------------------------------------------------------------------------------ 9-6 9.2.1 Trouble shooing when P2P parameter setting error occurs in case of XG5000 connection -------------------------------------------------------------------------------------------9-6 9.2.2 Trouble shooting when communication is not done after P2P client setting - 9-6 9.2.3 Trouble shooting when response frame is missed in case of acting as client and using RS-485 ---------------------------------------------------------------------------------------------------------- 9-7 9.2.4 Two response frame are dealt with as unknown when executing frame monitor ---9-7 9.2.5 Unable to analyze TRX frame -------------------------------------------------------------------- 9-7 9.2.6 Unable to know which one is reason of error, client or server ---------------------------- 9-7 9.2.7 Communication is not normal or communication is not executed repeatedly -------------------------------------------------------------------------------------------------9-8
10.1 Safety Instruction ------------------------------------------------------------------------------------------- 10-1 10.1.1 Fail safe circuit ----------------------------------------------------------------------- 10-3 10.1.2 PLC heat calculation --------------------------------------------------- 10-6 10.2 Attachment/Detachment of Modules -------------------------------------------------------- 10-8 10.2.1 Attachment/Detachment of modules ------------------------------------------------ 10-8 10.2.2 Caution in handling -------------------------------------------------------------------- 10-12 10.3 Wire -------------------------------------------------------------------------------------------------- 10-13 10.3.1 Power wiring -------------------------------------------------------------- 10-13 10.3.2 I/O Device wiring --------------------------------------------------------- 10-16 10.4 Channel Operation during Normal Run -------------------------------------------------- 10-17 10.5 Communication Interface Connection Method ------------------------------------------------ 10-18 10.5.1 RS-232C Interface (XBL-C21A) ---------------------------------------------------- 10-18 10.5.2 RS-422/485 interface (Built-in communication) ------------------------------- 10-20 10.5.3 RS-422 interface (XBL-C41A) ---------------------------------------------------- 10-21
10.6 Cable Specifications ------------------------------------------------------------10.6.1 Electrical characteristic ------------------------------------------------------10.5.2 External characteristic ---------------------------------------------------------10.7 Terminal Resistance ---------------------------------------------------------------
11.1 Maintenance and Inspection -------------------------------------------------------------- 11-1 11 .2 Daily Inspection --- ------------- -------------- -------------- -------------- ------ 11- 1 11.3 Periodic Inspection ----------------------------------------------------------------- 11-2
Appendix 1 Definition of Terms ------------------------------------------------------------------ A-1 Appendix 1.1 General Terms --------------------------------------------------------------------------- A-1 Appendix 1.2 Serial Communication Terms ----------------------------------------------- A-2 Appendix 2 Communication Relay List (L) -------------------------------------------------------------- A-8 Appendix 2.1 Communication Relay (L) List ---------------------------------------------- A-8 Appendix 2.2 Network Register (N) List -------------------------------------------------- A-11 Appendix 3 Communication Error Code ------------------------------------------------------------ A-12 Appendix 3.1 XGT Server Error Code -------------------------------------------------- A-12 Appendix 3.2 Modbus Server Error Code --------------------------------------------- A-13 Appendix 3.3 P2P Client Error Code -------------------------------------------- A-13 Appendix 4 Dimension (Unit: mm) ---------------------------------------------------------------- A-14
Chapter 1 General
Chapter 1 General
1.1 General
This user manual provides the information of Cnet I/F among XGB PLC system network about specification/performance and how to operate. Configuration of user manual is as follows. Chapter 1 2 3 4 5 6 7 8 9 10 11 App.1 App.2 App.3 App.4 Item General Specification System configuration Basic setting Communication function Remote connection XGT dedicated protocol Example program Diagnosis function Installation and wiring Maintenance Term Flag list Communication error code Dimension Content Describes configuration of manual, product characteristic and term Indicates general specification and performance specification of each module used XGB PLC. Describes basic communication parameter setting. Describes basic communication setting Describes server for data communication between PLC and P2P parameter setting. Describes CPU connection method by communication channel through XG5000, XG-PD. Describes XGT dedicated communication frame structure. Describes example program for communication test. Describes about self diagnosis by XG-PD. Describes installation and wiring. Describes maintenance. Describes term used in this manual Describes parameter setting N area, flag L related with Cnet I/F. Describes XGT server, modbus server, P2P error code. Describes dimension of communication module.
1-1
Chapter 1 General
1.2 Characteristic
(1) By using XG-PD operated in window environment, since the user can write communication speed, communication mode (protocol), connection with external device is easy. (2) RS-232C 1 port, RS-485 1 port as main unit built-in Cnet is supported. Two type of Cnet I/F module as extension, RS-232C 1 port (XBL-C21A), RS-422(485) 1port (XBL-C41A) is provided. (3) It operates independently according to channel, since protocol data written by user is managed by main unit, in case communication module is changed other than communication module, additional setting/download is not necessary. (4) (5) Device read/write by using XGT dedicated/modbus/user defined protocol is available. It provides communication function in which multidrop, up to 32 connection is available in case of using RS-422/485. (6) Setting of diverse communication speed is available. (1200,2400,4800,9600,19200,38400,57600,115200bps) (7) (8) (9) (10) 1:1 and 1:N communication are available. With abundant self-diagnosis, trouble diagnosis is simple. It supports dedicated server/client, modbus server/client, user defined communication function. In case of XBL-C21A module, modem communication is provided, by which controlling remote PLC is available.
1-2
Chapter 2 specification
Impact proof
57f150 4.9(0.5G) * Max. impact acceleration: 147(15G) * Authorized time: 11 * Pulse wave : Sign half-wave pulse (Each 3 times in X,Y,Zdirections) Square wave impulse noise AC:1,500V, DC: 500 V Voltage: 4 kV (contact discharging), 8 kV (air discharging) 80 ~ 1,000MHz, 10 V/m Digital/ Analog I/O communication interface 1kV
IEC 61131-2 Test spec of LS Industrial Systems IEC 61131-2, IEC 61000-4-2 IEC 61131-2, IEC 61000-4-3
Static electric discharging Radiation electromagnetic Fast Transient /burst noise 8 9 10 11 Ambient conditions Operating height Pollution level Cooling type Voltage Class Power module 2kV
Noise proof
2-1
Chapter 2 specification
Notes [1] IEC (International Electro technical Commission): An international nongovernmental organization which promotes internationally cooperated standardization in electric/electronic fields, publishes international standards and manages applicable estimation system related with. [2] Pollution level: An index indicating pollution level of the operating environment which decides insulation performance of the devices. For instance, Pollution level 2 indicates the state generally that only non-conductive pollution occurs. However, this state contains temporary conduction due to dew produced.
2-2
Chapter 2 specification
Data type
Synchronization type Transmission speed (bps) Station No. setting Transmission distance Diagnosis function
2-3
Chapter 2 specification
(2) Extension Cnet performance specification XGB extension Cnet communication module performance specification is as follows
Item Serial communication channel Modem function Operation mode (Operation definition by port) Server connection
Specification XBL-C21A RS-232C 1 channel External modem connection available Operates as communication client P2P - XGT dedicated protocol client - Modbus ASCII/RTU client - User defined communication - XGT dedicated protocol server - Modbus ASCII/RTU server 7 or 8 1 or 2 Even/Odd/None Asynchronous type 1200/2400/4800/9600/19200/38400/57600/115200 bps available Setting range: 0-31 Max. station No. available: 32 stations RS-232C: 15m (Extension available in case of using RS-422/485: max 500m modem) Check available by LED and XG-PD diagnosis service 120mA 56g 120mA 56g XBL-C41A RS-422(485) 1 channel -
Data type
Synchronization type Transmission speed (bps) Station No. setting Transmission distance Diagnosis function Consumption current Weight
2-4
Chapter 2 specification
8-1
8-2
8-3
No.
Name Input indication LED PADT connection connector Input connector and terminal block Output connector and terminal block Key switch Output indication LED Input indication LED PADT connection connector
Purpose
Input connector and terminal block Output connector and terminal block RUN / STOP key switch - In case key switch is STOP, remote mode change available Output indication LED Indicates operation status of CPU module - PWR(Red): Power status indication - RUN(Green): RUN status indication STOP mode: Off / RUN mode : On - Error(Red): Flicker in case error occurs Built-in RS-485 connection connector - +, - terminal connection connector ofRS-485 communication Built-in RS-232C connection connector -TD, RD, SG terminal connection connector of RS-232C communication DC24V power connector
Built-in RS-485 Connection connector Built-in RS-232C connection connector Power connector
2-5
Chapter 2 specification
H type 8-1
8-2 No. Name Input indication LED PADT connection connector Input connector and terminal block Output connector and terminal block Key switch Output indication LED
Purpose
Input indication LED PADT connection USB(USB 1.1 supported) 1 channel, RS-232C 1 channel connector Input connector and terminal block Output connector and terminal block RUN / STOP key switch -In case key switch is STOP, remote mode change available Output indication LED Indicates basic units operation status - PWR(Red) : power status indication - RUN(Green) : RUN status indication STOP mode : Off / RUN mode : On - Error(Red): flicker in case error occurs Built-in RS-485 connection terminal block - +,- terminal connection terminal block of RS-485 communication - TD,RD,SG terminal connection terminal block of RS232C communication AC100~240V power terminal block Battery (3V) holder Program mode and O/S download mode selection switch
8-1
2-6
Chapter 2 specification
XBL-C41A
XBL-C21A
No.
Name LED indication RS-422/RS-485 connector RS-232C connector Operation status indication
Purpose
Connector for connection with external device Connector for connection with external device
LED indication content Operation status indication Interface with main unit status indication Indication during frame transmission
LED status On Off Flicker Off Flicker Off Flicker Off On Off
LED status content Normal operation Abnormal operation Normal operation Abnormal operation Transmitting frame Frame transmission completion Receiving frame Frame reception completion Frame error Normal frame
I/F
TX
RX
ERR
2-7
Main unit
I/O module
Special module
Communication module
Item I/O configuration point Digital I/O module Extension module connection available no. Analog module Communication module Main unit H type
content XB(E)C-DxxxH: 32 ~ 384 points Max. 10 Max. 10 Max. 2 XBC-DR32/64H XEC-DR32/64H XBE-DC08/16/32 XBE-TN08/16/32 XBE-TP08/16/32 XBE-RY08/16A XBE-DR16A XBF-AD04A XBF-DV04A XBF-DC04A XBL-C41A XBL-EMTA XBO-1024A 3-1 XBF-RD04A XBF-RD01A XBF-TC04S XBL-C21A XBC-DN32/64H XEC-DN32/64H
Product list
Main unit
I/O module Special module Communication module Item Content XBM-DxxxS : 16 ~ 352 point Digital I/O module Analog module Communication module S type Max. 7 Max. 7 Max. 2 XBM-DR16S XBE-DC08/16/32 XBE-TN08/16/32 XBE-TP08/16/32 XBE-RY08/16A XBE-DR16A XBF-AD04A XBF-DV04A XBF-DC04A XBL-C41A XBL-EMTA XBO-1024A XBF-RD04A XBF-RD01A XBF-TC04S XBL-C21A XBM-DN16/32S
I/O configuration point Extension module connection available no. Main unit
Product list
Memory module
3-2
[Figure 3.2.1] 1:1 communication with PC Wiring method PC Pin no. 1 2 (RXD) 3(TXD) 4 5(GND) 6 7 Female Type 8 9 In case of using channel 2, connect 485+ and 485- of RS485 terminal. XGB main unit Signal Pin no. name 1 2 3 4 5 485485+ SG TX RX 1 2 3 4 5
External form of PC
3-3
(2) In case of using 1:1 connection with monitoring device such as XGT Panel
XP series (LSIS)
XGB main unit RS-485 I/F RS-232C I/F [Figure 3.2.2] 1:1 communication with HMI Wiring method (RS-232C) XP XP external form Pin no. 1 2(RXD) 3(TXD) 4 5(GND) 6 7 Female Type 8 9 Note) In case of PMU, short no.4 and no.6, short no.7 and no.8. Wiring method (RS-485) PMU 485+ 485Connection no. and signal direction XGB main unit 485+ 485Connection number and signal direction XGB main unit Pin no. 1 2 3 4 5 Signal name 485485+ SG TX RX 1 2 3 4 5 XGB external form
3-4
RS-232C I/F RS-485 I/F [Figure 3.2.3] 1:1 communication between PLCs
Wiring method XGB external form XGB main unit Pin no. 1 1 2 3 4 5 2 3 4 5 Connection no. and signal direction Pin no. 1 2 3 4 5 XGB main unit Signal name 485485+ SG TX RX
3-5
3.2.2 1:1 Dedicated modem connection with PC (HMI) It is 1:1 communication system connected through dedicated modem through RS-232C channel with PC (HMI). Normally, PC (HMI) acts as client station, Cnet I/F module acts as server station which respond request of PC (HMI). Since it uses modem, RS-232C channel should be set as dedicated modem and long distance communication is available. Operation mode of this module should be set according to communication method of PC (HMI).
XBM-DN32S XBL-C21A XBM-DN32S XBL-C21A
Modem Modem
3-6
3.3.3 Modem connection with PC and communication between Cnet I/F modules PC and Cnet #1 station is connected by modem through RS-232C channel Cnet #1 station ~ N station is communication between Cnet I/F module through RS-422 channel Cnet #1 station ~ N station is Communication between Cnet I/F modules through RS-422 channel PC acts as client station of Cnet #1 station Up to max 32 station connection is available in case of Cnet I/F module (RS-422/485 communication) It sets station 1 among Cnet I/F module as server station Dedicate modem or dial-up modem available
RS-422 communication
Module setting XBL-C41A XGT client XGT server Station no. 1 2~N
3-7
3.2.4 Dedicated communication with PC (HMI) and different type RS-422 communication Null-modem communication by using PC (HMI) and RS-232C channel PC (HMI) acts as client station, Cnet I/F module acts as server, at this time, module setting acts as RS-232C XGT server Cnet I/F module RS-422 channel acts as P2P mode. It transmits indication data to display module of mosaic panel through RS-422 channel Reading display transmission data from PC
HMI - PC
(GLOFA VIEW)
[Figure 3.2.6] 7-Segment operating system for RS-422 Module setting XBL-C41A P2P
Station no. 1
3-8
Optical modem communication system for Cnet communication on material above moving linearly P2P communication or dedicated mode communication with monitoring device RS-232C/RS-422 communication with optical modem Communication between Cnet I/F module is dedicated server/client communication Optical modem connected with Cnet I/F module on mobile body can communicate with the other optical modem only when positioned in communication available Main application: Parking tower XGB PLC Cnet # 1
Optical
Monitoring device
modem
RS-422 communication
Optical
modem
RS-232C communication
Optical
modem
RS-232C communication
3-9
3.2.6 Wireless modem communication for communication between revolution bodies RS-232C communication with wireless modem Communication between Cnet I/F module is dedicated/client communication RS-232C channel of Cnet I/F module is dedicated modem mode
Wireless modem
RS-232C communication
RS-232C communication
Module setting Type RS-232C Dedicated mode XBL-C21A User mode RS-422 Not used Station 2 station
3-10
Operation sequence
6
Equip Cnet I/F module to XGB system (It is applied in case of using external Cnet I/F module)
6
Connect Cnet I/F module with device to communicate by cable. Cable wiring and connect terminal resistance.
6
After power on, check LED status of communication module Check whether interface of communication with CPU is normal or not.
6
Set P2P parameter and basic setting at XG-PD. Set parameter according to network configuration at XG-PD, download parameter
6
Enable link at XG-PD. Not enable link act as server.
6
Operation start
Note 1) In Cnet I/F module, hardware station setting is not necessary. By using XG-PD, designate station and basic setting necessary in Cnet communication.
4-1
4-2
At this time, in case registered module is different with currently connected module or type of communication module in the previous project, it shows whether it changes or not with the following message.
[Figure 4.2.4] I/O information change message If you execute Read IO Information, equipped communication module like the following is indicated IO module information window.
4-4
4-5
4-6
*Parity bit Cnet I/F module can define three parity bits. Meaning of each parity bit is as follows. Parity bit type None Even Odd Not using parity bit If the number of 1 in one byte is even, parity bit becomes 0. If the number of 1 in one byte is odd, parity bit becomes 1. [Table 4.3.2] Parity content table Operation mode setting Sets operation mode Driver type P2P Meaning Each port acts as client and executes the communication by setting P2P parameter. It acts as XGT server supporting XGT dedicated communication. It acts as Modbus ASCII server Reference P2P setting reference Dedicated service Modbus communication Modbus communication Meaning Reference
XGT server
It acts as MOdbus RTU server [Table 4.3.3] operation mode setting item
Executing XG-PD, you register communication module Cnet for setting at each slot position. After Cnet module is registered, if you double-click Cnet module, the following standard setting window shows.
4-7
[Figure 4.3.2] Communication module setting screen If standard communication parameter setting ends, download Cnet module. If you select [Online -> connection -> Write parameter], download is executed. After downloading, parameter is applied shortly.
4-8
5-1
[Figure 5.1.1] Modbus server standard settings screen Modbus instruction and response data max. number which is supported by Modbus RTU/ASCII driver are as follows. Other client device should request in the range of the following table.
5-2
Code 01 02 03 04 05 06 15 16
Purpose Read Coil Status Read Input Status Read Holding Registers Read Input Registers Force Single Coil Preset Single Register Force Multiple Coils Preset Multiple Registers
Max. no. of response data 2000 Coils 2000 Coils 125 Registers 125 Registers 1 Coil 1 Register 1968 Coils 120 Registers
[Table 5.1.1] Modbus instruction code About request per above code, you should set area about XGB PLC memory. At Modbus Settings of Cnet active mode window, if you click Modbu Settings button which is activated when selecting Modbus ASCII server/RTU server, the following setting window shows.
[Figure 5.1.2] Modbus server memory settings window Meaning of each setting item is as follows. Item Bit read area Address Bit write area Address Word read area Address Word write area Address Meaning Address of XGB relevant to digital Input area Address of XGB relevant to digital output area Address of XGB relevant to analog input area Address of XGB relevant to analog output area [Table 5.1.2] Modbus area meaning In case of IEC type, use IEC type address value Address value of each item is base address of each area. The setting of above screen is the situation of allocating bit reading are from M0000 (bit) and Word writing area from D0000 (word). Base address input value should be in XGB series internal device area. 5-3 Reference Bit address Bit address Word address Word address
Note [N1] P2P 01 is fixed allocated at built-in communication, P2P 02 for first communication module, P2P 03 for second communication. So slot number should be correct.
P2P parameter registration window Diverse P2P parameter setting about one Cnet I/F module is available. Each P2P parameter consists of P2P channel, P2P block, user frame definition. 5-4
[Figure 5.2.2] P2P parameter configuration screen 1) P2P channel P2P channel setting defining communication protocol of P2P service to execute XGT/Modbus available Each channel is independent. It is applied when active mode is Use P2P settings 2) P2P block Setting P2P block of 32 acting independently 3) User frame definition User frame definition registration
5-5
[Figure 5.2.3] P2P channel setting screen Driver selectable in XGB Cnet and meaning are as follows. Driver None User frame definition XGT client
Modbus ASCII client Modbus RTU client
Meaning Not using P2P service In case of transmitting/receiving user frame definition Select in case of executing read, write of XGT memory. Select in case of acting as Modbus client, using ASCII mode Select in case of acting as Modbus client, using RTU mode. [Table 5.2.1] Driver table
About communication channel, in case of selecting P2P driver as XGT or Modbus, user frame definition can not be used.
* Modbus instruction code and Address allocation Code 01 02 03 04 05 06 15 16 Read Coil Status Read Input Status Read Holding Registers Read Input Registers Force Single Coil Preset Single Register Force Multiple Coils Preset Multiple Register Purpose Modicon PLC Data address 0XXXX(bit-output) 1XXXX(bit-input) 4XXXX(word-output) 3XXXX(word-input) 0XXXX(bit-output) 4XXXX(word-output) 0XXXX(bit-output) 4XXXX(word-output) Reference Bit read Bit read Word read Word read Bit write Word write Bit write Word write
5-6
[Figure 5.2.4] P2P block setting screen You can set up to 32 independent blocks. If you select temporary block, you can designate each block operation by selecting instruction.
5-7
Item Channel setting Conditional flag Command type Single continuous Bit 1Byte Data type 2Byte 4Byte 8Byte No. of variables Data size Detestation station number Variable setting Read area Save area Address 1,2
Description Designates channel to communicate (Channel 1 : RS-232C, channel 2 : RS-485) Designates communication command condition flag Designates communication device individually Designates communication device continuously Sets data type to communicate as Bit Sets data type to communicate as Byte Sets data type to communicate as WORD Sets data type to communicate as Double WORD Sets data type to communicates as Long WORD Determines the number of area to read individually (Up to 4 available) Effective when command type is single and up to 120 byte available Sets destination station number to communicate
Unit: Byte
Designates device of destination station to read Designate saving device to read Memory area used in internal system [Table 5.2.3] Read instruction setting item 5-8 Auto setting
2) Write instruction Instruction used to write data to wanted area about destination station and this is used commonly regardless of driver type. Basic configuration is as follows. Item Channel setting Conditional flag Command type Single continuous Bit 1Byte Data type 2Byte 4Byte 8Byte No. of variables Data size Detestation station number Variable setting Read area Save area Address Designates device of destination station to read Designate saving device to read Memory area used in internal system [Table 5.2.4] P2P Write instruction setting item In case M102 bit is set by using channel 2 about destination station 2, the following example shows that it reads 10 byte from memory M125(Word) and writes P20(Word) of destination . Auto setting 1,2 Description Designates channel to communicate (Channel 1 : RS-232C, channel 2 : RS-485) Conditional flag Designates communication device individually Designates communication device continuously Sets data type to communicate as Bit Sets data type to communicate as Byte Sets data type to communicate as WORD Sets data type to communicate as Double WORD Sets data type to communicates as Long WORD Not used in Modbus communication Effective when command type is single and up to 120 byte available Sets destination station number to communicate Unit: Byte 1Byte Word Dword Lword Reference Main unit built-in All Bit device
[Figure 5.2.7] P2P Write instruction setting screen 3) Send instruction Instruction used to send temporary frame to external device by not specified communication method other than XGT/Modbus protocol. (User defined communication) You should select one frame per Send instruction and designate fixed size/variable size about memory of each frame in this instruction. 5-9
Setting content Designates communication channel Sets transmission conditional flag Designates transmission frame name Designates internal device to send Sets size of device to send Indicates network device allocation
Reference
Frame is already registered at transmission frame Setting available when variable sized variable is set among Body segment of transmission group
Varia ble
[Table 5.2.5] P2P SEND instruction setting item 4) Receive instruction Instruction used to receive the frame among frame sent by destination station. You cant select same frame about each P2P Receive instruction block. About receipt frame, you can determine one receipt instruction block.
Setting content Designates communication channel Designates receipt frame name Designates internal device to receive Indicates network device allocation
Reference
Frame already registered at receipt frame Setting available when variable sized variable is set among Body segment of receipt group
[Table 5.2.6] P2P Receive instruction setting item In case of receipt, if frame fitting in communication type of designated group, each data is received at designated variable sized variable area. 5-10
[Figure 5.2.10] Group add screen 2) Frame - It consists of Head, Body, Tail - Defines transmission/reception frame - Adding fixed, variable sized variable at Body - Frame consists of diverse segment, about one Body, variable segment can be registered up to 4. - With mouse on group TX [Transmission], click right button of mouse and add frame.
3) Segment - Head, Body, Tail of frame consist of diverse segment, you can register to the following frame edit window.
[Figure 5.2.12] Frame HEAD segment setting screen - Numerical constant, String constant, fix sized variable, variable sized variable in segment consisting frame.
[Figure 5.2.13] Add segment setting screen A) Numerical constant - Defines part fixed as constant among frame - Value of data is Hex.
B) String Constant - Register String Constant among frame - Value of data is ASCII value.
[Figure 5.2.15] Add string constant segment screen C) Fix sized variable - It is available at Body area of reception frame - Used in case of processing data as size as defined among received frame - Size is byte unit - Transmits/receives data as ASCII - Data transmission example of 2 words: h12345678 (2words) => 3132333435363738 (8 byte) transmission - In case of transmitting/receiving data of 2 words, since it changes into ASCII, data size should be 8. - If checking Assign memory, you can save at PLC Memory. - Conversion, Swap available.
D) Variable sized variable Available at Body area of TX/RX frame - Transmission frame Used in case of changing length of frame If checking Assign memory, it makes transmission frame by data read from PLC memory - Reception frame Used in case of processing variable sized variable among received frame Registering at last segment among Body area is available. If selecting Assign memory, it saves data about each segment among received frame. Swap, conversion is available. Received data size is byte size
[Figure 5.2.17] Edit segment variable sized variable screen 4) Data conversion process When transmitting/receiving frame, in case data is changed from Hex to ASCII or executing byte swap, you can define frame edit window. A) Conversion Hex To ASCII - Transmission: it changes data read from PLC memory into ASCII and configure transmission frame - Reception: it changes received data to ASCII and save it ASCII To Hex - Transmission: it changes data read from PLC memory to Hex and configure transmission frame - Reception: it changes received data to Hex and save it
5-14
[Figure 5.2.18] Segment variable sized variable conversion setting screen When configuring transmission frame, it uses 2 words of PLC memory M100 and in case of changing Hex to ASCII, in case h34353637 is saved M100, each segment of transmission frame changes into h4567. And in case of changing part of received frame to Hex and saving it, if each area is h4567, it is converted and h34353637 is saved. B) Swap 2 byte: 2 byte swap relevant part among TX/RX frame 4 byte: 4 byte swap relevant part among TX/RX frame 8 byte: 8 byte swap relevant part among TX/RX frame If swapping h1234567811223344 by each method, it changes like the followings. - 2 byte swap: 0x3412785622114433 - 4 byte swap: 0x7856341244332211 - 8 byte swap: 0x4433221178563412 5) Transmission frame To send frame, you should register wanted transmission frame. In case of not using P2P XGT client and user defined frame, the following is example writing 4 word data from M100 to destination station 0. TX.Frame Head Body Variable Frame 0x05 00 wSB 06%MW100 04 sized variable Hex To ASCII Conversion Byte Numerical Checksum constant ASCII conversion 0x04 BCC Tail
Reference
Numerical String
String
String constant
String constant
5-15
[Figure 5.2.19] Transmission frame group add screen If group edit window shows like the following, insert group name and select frame type Transmission.
[Figure 5.2.20] transmission frame group setting screen You can register diverse frame about each group. For this, select group to register transmission frame and click right button of mouse and add frame.
By using frame edit window, you can register Head, Body, Tail
[Figure 5.2.22] transmission frame edit window Only one Head and Tail exist about group but you can register many Bodies. Also you can omit Head and Tail but one Body is necessary. A) Head registration Head can add many segments but in each segment numerical constant and string constant are available
[Figure 5.2.23] Transmission frame Head registration screen B) Body registration Body can be configured many segments, you can define up to 4 variable sized variable. In frame edit window, if you set Body about TX.FRM_A, it is as follows.
[Figure 5.2.24] Transmission frame Body registration screen C) Tail registration You can register BCC in this item. Supported BCC is as follows.
5-17
[Figure 5.2.25] Transmission frame Tail registration screen The following is screen where transmission frame registration is complete.
[Figure 5.2.26] transmission frame setting complete screen 6) Reception frame In case of receiving temporary frame, first you should define reception frame. In case of receiving ACK, NAK response reception frame, registration method is as follows. ACK.FRAME Frame Reference Head 0x06 Numerical constant Head 0x15 1 Numerical constant 01 2 String constant 01 String constant Body wSB String constant Body wSB 3 String constant Fix sized variable 2 (Error code saving area) 03 1 Numerical constant 03 Numerical constant Tail BCC Byte Check Sum ASCII Tail BCC 2 Byte Check Sum ASCII
5-18
[Figure 5.2.27] ACK, NAK reception group registration screen about wSB request frame Adds frame registered reception frame group ACK. A) Head registration
[Figure 5.2.28] ACK reception frame Head registration screen B) Body registration Registers at Body about data to process and instruction among reception frame
[Figure 5.2.29] ACK reception frame Body registration screen C) Tail registration
[Figure 5.2.30] ACK reception frame Tail registration screen Registers frame at registered reception frame group NAK A) Head registration
B) Body registration Registers at Body about data to process and instruction among reception frame In case you know size of data to save among reception frame, use fix sized variable and in case you dont know size of data, use variable sized variable.
[Figure 5.2.32] NAK reception frame Body registration screen C) Tail registration
[Figure 5.2.33] NAK reception frame Tail registration screen Screen where ACK, NAK registration is complete is as follows.
5-20
[Figure 5.2.35] P2P Parameter Write screen If you press OK, it downloads P2P parameter to CPU. 2) P2P service start Though you download P2P parameter, to start P2P service, you should start P2P. For this, select Online-Enable Link.
5-21
[Figure 5.2.36] P2P enable setting screen In the Enable Link (HS Link, P2P) window, select P2P parameter. Already checked P2P parameter is under operation. If you uncheck, P2P service stops. If you like to know whether P2P service is normal or not, select Online -> System diagnosis. For this function, refer to Chapter 9. system diagnosis.
5-22
Public line
6-1
Remote connection sequence by using dial-up modem is as follows. (a) Cnet I/F module connected with PLC setting 1) Sets active mode of RS-232C channel of Cnet I/F as XGT server at XG-PD. 2) Sets Modem type of Cnet I/F module (RS-232C) as Dial-up modem and inputs atz in Modem Initialization.
[Figure 6.1.2] XG-PD setting example (b) XG5000 setting 1) Execute XG5000 and pop up online settings window by selecting Online -> Connection settings. Here selects Connection settings -> Type as Modem.
Note Baud rate in modem settings means communication speed between PC and modem, not communication speed of modem. Baud rate of modem means communication speed between modem and modem, it is set automatically according to quality of public line and destination modems speed. For XG5000 remote connection at XGB PLC, you should use RS-232C channel. At communication standard setting, set RS-232C dial-up modem and write it to XGB Cnet I/F module. 3) Phone number means phone number of modem side connected with Cnet I/F module, in case of going out from local through extension line, you can use extension number and , symbol. (Ex) In case extension number is 9: set as 9, 0343-398-xxxx Note In case modem connected with Cnet I/F module of destination station is through tandem center, communication is impossible. Namely, there is extension number for reception station, dial-up modem communication is impossible.
4) In case of selecting connection step as remote 2, like the following, select base and slot number of remote 1 communication module in detail and communication module station number of remote 2. Inputs station number set in Cnet I/F module, In case of Cnet channel, selects communication channel of remote 2.
6-3
5) Select connection on online after setting connection option, modem initialization dialog box shows and modem is initialized.
6) In case setting of COM channel of modem or connection with modem is wrong or, the error message shows. At this time, check COM channel or modem connection.
6-4
7) If making phone call is complete, XG5000 tries remote connection. In case remote connection is complete, Online menu is activated. 8) This case is same with connection status where connection is established through RS-232C cable. Here you can use all function of online menu.
Note After remote connection, you can use online menu of XG5000 like local connection. You can use program download/upload/monitor function etc. PLC control through modem is affected by capability of modem and status of telephone line. In case telephone line is bad, connection may be canceled. At this time, dont try reconnection instantly, wait for 30s and retry again from step 1)
9) In case you want to disconnect remote connection, select disconnect at online menu. Then disconnection menu box shows and remote connection is disconnected.
10) If connection is disconnected, XG5000 quit call automatically and disconnection telephone connection. 11) If it is success to quit call normally, local and remote modems return to initialization status. You can establish remote connection through making phone call.
6-5
(2) Dedicated modem connection The following figure indicates that PC and Cent module is connected by dedicated modem through dedicated line.
Dedicated line [Figure 6.1.6] XG5000 remote connection example by dedicated modem [Figure 6.1.6] is example of dedicated modem connection by dedicated line. You can use wireless modem, optical modem other than dedicated modem. For setting method of modem not using public line, it is same with case of dedicated modem and refer to the followings. Remote connection sequence by dedicated modem is as follows. (a) Connects PC with dedicated modem at Cnet I/F module (b) Cnet I/F module setting connected at remote PLC 1) Sets RS-232C channel of Cnet I/F module as XGT server. 2) Sets RS-232C channel operation of Cnet I/F module as dedicated modem. (c) XG5000 setting 1) Execute XG5000 and select Online -> connection settings and pop up online settings window. Here set Connection settings -> Type as Modem. Press the Settings button and set communication channel and baud rate set in dedicated modem connected with PC. Baud rate should be same with communication speed of dedicated modem.
6-6
2) In case of setting depth as remote 2, set settings related with remote 1, 2 at the Detail window like the followings.
[Figure 6.1.8] dedicated modem remote 2 setting screen 3) After completing setting, if you click connection of connection setting, XG5000 tried remote connection. In case remote connection is complete, it is same when connection is established by RS-232C cable. Here you can use all functions of Online menu.
Note After remote connection, you can use online menu of XG5000 like local connection. You can use program download/upload/monitor etc. PLC control through modem is affected by capability of modem and status of telephone line. In case telephone line is bad, connection may be canceled. At this time, dont try reconnection instantly, wait for 30s and retry again from step 1) (d) In case you want to disconnect remote connection, select disconnect at online menu. Disconnection menu box shows and remote connection is disconnected.
(e) If disconnection is done normally, Cnet I/F module and XG5000 are switch into initial mode. In case of reconnection, retry from (b) item to reconnect.
(f) Since for optical modem, wireless modem, only media between modems is different. Connection method is same.
6-7
Remote connection
Remote client
Remote server
Dedicated modem
Dedicated line
Dedicated modem
[Figure 6.1.9] remote connection between Cnet I/F modules Remote connection sequence by dedicated modem is as follows. (a) Cnet I/F module setting connected at remote PLC 1) Set RS-232C channel operation of Cnet I/F module at XG-PD as dedicated modem and have it operate as XGT server.
[Figure 6.1.10] Cnet I/F module XG-PD setting of remote PLC 6-8
(b) Cnet I/F module setting connected at local PLC 1) Converts local connected PLC to Stop mode
Note Basic parameter of remote server connected through XG5000 should be set as server. In case of remote client, it should be set as P2P client. In case there are many communications, if you try to remote connection, you may fail. Be sure to convert local PLC to stop mode and stop communication before remote connection. 2) XG-PD setting a) Set active mode of RS-232C of Cnet I/F module at XG-PD as Use P2P settings. b) Set modem type of Cnet I/F module (RS-232C) as dedicated modem.
[Figure 6.1.11] Cnet I/F module XG-PD setting of local PLC 3) XG5000 a) Execute XG5000 and select Online Connection Settings and set connection method. Select Type as RS-232C and communication channel. This is same in case of local connection.
b) Select depth as remote 1 and click Settings for detail setting. In the detail window, set station number. AS for station number, input station number set in Cnet I/F module to execute remote connection. Figure is case Cnet station number is set as 1.
[Figure 6.1.13] XG5000 remote 1 connection setting screen c) XG5000 tries remote connection and in case remote connection is complete, online related function is activated. d) In this case, remote 1 connection is complete, it is same status with where it is connected by RS-232C cable. Here you can use all functions of online menu. (c) In case you want to disconnect remote connection, select disconnect at online menu. Disconnection menu box shows and remote connection is disconnected. In case disconnection is done normally, Cnet I/F module and XG5000 are converted into initial mode. In case of reconnection, retry from (a) for reconnection.
6-10
(d) In case of optical modem, wireless modem other than dedicated modem, communication media is only different, method of remote connection is same. [Figure 6.1.14] indicates remote connection by wireless modem. As for connection method, it is same with method of remote connection between Cnet I/F module by using communication. In case of using wireless modem, 1:N remote connection where there are many Cnet I/F module is also available.
Remote connection
Remote Cent
Wireless modem
Wireless modem
6-11
(2) Remote connection by RS-422/485 [Figure 6.1.15] indicates XG5000 and local PLC is connected into CPU module by RS-232C cable, in case RS-422/485 channel of Cnet I/F module connected at local PLC communicates, it is figure indicating remote connection example to remote PLC. Like figure, XG5000 can control program of remote PLC by remote connection through remote connection function between Cnet I/F modules.
Remote server
Remote server
Remote client
Note Basic parameter of remote server connected through XG5000 should be set as server, in case of remote client, it should be set P2P client. If you try remote connection when there is many communications, connection may fail. You should convert PLC as Stop mode and stop communication before remote connection.
Remote connection sequence by using dedicated modem is as follows. (a) Set basic parameter of remote server as XGT server. (b) Convert local connected PLC into Stop mode. (c) Execute XG5000 and select Online Connection settings and set connection method. And select connection method RS-232C and communication channel. This is same with case of local connection. At this time, you should set station number of remote server to connect.
6-12
Note XGBs built-in communication function supports Cnet communication without any separate Cnet I/F module. It must be used under the following instructions. 1) Channel 0 of XGBs main unit supports 1:1 communication only. For 1:N system having masterslave Format, use RS-485 communication in channel 1 or XGBs main unit with XGL-C41A module connected. XGL-C41A module supports RS-422/485 protocol. 2) RS-232C communication cable for XGBs main unit is different from RS-232C cable for XG5000 (XG-PD) in pin arrangement and from the cable for Cnet I/F module, too. The cable cant be used without any treatment. For the detailed wiring method, refer to configuration of respective communication. 3) Its possible to set baud rate type and station No. in XG5000 (XG-PD).
7-1
(b) ACK response frame (XGB external communication device, when receiving data normally)
Header (ACK)
Station number
Command
Command type
(c) NAK response frame (XGB Cnet I/F module external communication device when receiving data abnormally) Header (NAK) Station number Command Command type Error code ( ASCII 4 Byte ) Tail (ETX) Frame check (BCC)
Note 1) The numerical data of all frames are ASCII codes equal to hexadecimal value, if theres no clear statement. The terms in hexadecimal are as follows. Station No. When the main command is R(r) or W (w) and the command type is numerical (means a data type) All of the terms indicating size of all data in the Formatted data area. Monitoring registration and command registration number of execution commands. All contents of data 2) If it is hexadecimal, H is attached in front of the number of frames like H01, H12345, H34, H12, and H89AB. 3) Available frame length is maximum 256 bytes. 4) Used control codes are as follows. Codes ENQ ACK NAK EOT ETX Hex value H05 H06 H15 H04 H03 Name Enquire Acknowledge Not Acknowledge End of Text End Text Contents Request frame initial code ACK response frame initial code NAK response frame initial code Request frame ending ASCII code Response frame ending ASCII code
5) If the command is small letter (r), BCC value is added in check frame. The other side capital letter (R), BCC value is not added in check frame.
7-2
Stati on No.
Comma nd
Formatted data
EOT
BCC
Formatted data
ETX
BCC
Formatted data
ETX
BCC
Command Main command ASCII code H72 (H52) H72 (H52) H77 (H57) H77 (H57) Command type Code SS SB SS SB ASCII code 5353 5342 5353 5342 Reads direct variable of Bit, Byte, Word, Dword, Lword type. Read direct variable of Byte, Word, Dword, Lword with block unit (Bit continuous read is not allowed) Write data of Bit, Byte, Word, Dword, Lword at direct variable Write data of Byte, Word, Dword, Lword at direct variable with block unit (Bit continuous read is not allowed) Treatment
Reading device
Writing device
Individual w(W)
Continuous w(W)
Classification Main command Item Monitoring variable register Execution of monitoring Note Code x(X) y(Y)
H00~H0F H00~H0F
- It identifies capitals or small letters for main commands, but not for the others.
7-3
Device P M K F T C L N D U Z R
S type range P0 P127 M0 M255 K0 K2559 F0 F255 T0 T255 C0 C255 L0 L1279 N0 N3935 D0 D5119 U00.00 U07.31 Z0 Z127 -
H type range P0 P1023 M0 M1023 K0 K4095 F0 F1023 T0 T1023 C0 C1023 L0 L2047 N0 N5119 D0 D10239 U00.00 U0A.31 Z0 Z127 R0 R10239
Size (Word) 1024 1024 4096 1024 1024 1024 2048 5120 10240 352 128 10240
Remark Read/Write/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Write/Monitor available
- XEC-DXXXH Device I Q M W R F K L N U Range %IW0.0.0 ~ %IW15.15.3 %QW0.0.0 ~ %QW15.15.3 %MW0 ~ %MW8191 %WW0 ~ %WW10239 %RW0 ~ %RW10239 %FW0 ~ %FW1023 %KW0 ~ %KW4095 %LW0 ~ %LW2047 %NW0 ~ %NW5119 %UW0.0.0 ~ %UW0.15.31 Size (Word) 1024 1024 8192 10240 10240 1024 4096 2048 5120 512 Remark Read/Write/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Monitor available Read/Write/Monitor available Read/Write/Monitor available Read/Monitor available Read/Write/Monitor available
7-4
Note Timer/Counter used in bit command means contact point values. (word command means current values.) Data register (D) can uses only word or byte commands. In byte type commands, address is doubled. For example, D1234 is addressed to %DW1234 in word type, and is addressed to %DB2468 in byte type.
7-5
Header
ENQ H05
Comma nd
R(r) H52(72)
Command type
SS H5353
Number of blocks
H01 H3031
Device length
H06 H3036
Device name
.... %MW100 H254D57313030
Tail
EOT H04
Frame check
BCC
Item
Description When command is lowercase(r), only one lower byte of the value resulted by adding
BCC
1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC. For example, the BCC of the above frame is gotten as below: H05+H32+H30+H72+H53+H53+H30+H31+H30+H36+H25+H4D+H57+H31+H30+H3 0+H04 = H03A4 Therefore BCC value is A4. This specifies how much of the blocks composed of "[device length][device name]" are in this request format. This can be set up to 16. Therefore, the value of [Number of blocks] must be set between H01(ASCII value:3031)-H10(ASCII value:3030). This indicates the number of name's characters that means device, which is allowable up to 16 characters. This value is one of ASCII converted from hex type, and the range is from H01(ASCII value:3031) to H10(ASCII value:3130). For example, if the device name is %MW0, it has 4 characters to be H04 as its length. If %MW000 characters to be H06. Address to be actually read is entered. This must be ASCII value within 16 characters, and in this name, digits, upper/lower case, '%' only is allowable to be entered.
Note H of example frame represents hex value, and is unnecessary during preparing real frame.
7-6
......
Item BCC
Description When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC, and sent. Number of data means byte number of hex type, and is converted into ASCII. This number is determined according to data type (X,B,W) included in device name of computer request Format.
Number of data
Number of data in accordance with its data type is as follows: Data type
Bit(X) Byte(B) Word(W)
Available variable
%(P,M,L,K,F,T,C,D,R,I,Q,W)X %(P,M,L,K,F,T,C,D,R,I,Q,W)B %(P,M,L,K,F,T,C,D,R,I,Q,W)W
Number of data
1 1 2
R area is supported at XBC-DXXXH Data Example 1 The fact that number of data is H04 (ASCII code value:H3034) means that there is hex data of 4 bytes in data. Hex data of 4 bytes is converted into ASCII code in data. Example 2 If number of data is H04 and the data is H12345678, ASCII code converted value of this is "31 32 33 34 35 36 37 38," and this contents is entered in data area. Name directly, highest value is entered first, lowest value last. Note If data type is Bit, data read is indicated by bytes of hex. Namely, if Bit value is 0, it indicated by H00, and if 1, by H01. In data area, there are the values of hex data converted to ASCII code saved.
7-7
Explanation When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC. Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. Refer to 10.1.4 XGT dedicated communication error codes and countermeasures.
This example supposes when 1 WORD from M20 and 1 WORD from P001 address of station No.1 are read (At this time, it is supposed that H1234 is entered in M20, and data of H5678 is entered in P001.) 1) PC request format (PC XGB)
Station No. H01 Comman Number of blocks d type SS H02 Variable length H06 Device length Frame check
Command R(r)
Variable name
Variable name
Tail
%MW020 H06 %PW001 EOT BCC H255057303030 H254D573032 H04 H3036 ASCII value H05 H3031 H52(72) H5353 H3032 H3036 31 30
Command
Data
Ex. of frame ACK H01 R(r) SS H02 H02 H1234 H303 H52(72) H5353 H3032 H3032 H31323334 ASCII value H06 1
7-8
Comman d R(r)
H52(72)
Note Number of data specifies the number to read according to the type of data. Namely, if the data type of device is word and number is 5, it means that 5 words should be read. In the number of data, you can use up to 60 words (120Byte). Protocol of continuous reading of direct variable doesn't have number of blocks. . Bit device continuous reading is not supported.
Description When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC. This indicates the number of name's characters that means device, which is allowable up to 16 characters. This value is one of ASCII converted from hex type, and the range is from H01 (ASCII value:3031) to H10 (ASCII value:3130). Address to be actually read is entered. This must be ASCII value within 16 characters, and in this name, digits, upper/lowercase, and '%' only are allowable to be entered.
Format name
Ex. of frame ASCII value
Header
ACK H06
Command
R(r) H52(72)
Command type
SB H5342
Number of blocks
H01 H3031
Number of data
H02 H3134
data
H1122 H31313232
Tail
ETX H03
Frame check
BCC
7-9
Number of data
DWord(D) LWord(L)
Example 1 When memory type included in variable name of computer request Format is W (Word), and data number of computer request Format is 03, data number of PLC ACK response after execution of command is indicated by H06 (2*03 = 06 bytes)Byte and ASCII code value 3036 is entered in data area. Example 2 In just above example, when data contents of 3 words are 1234, 5678, and 9ABC in order, actual ASCII code converted values are 31323334 35363738 39414243, and the contents are entered in data area. (d) XGB response format (NAK response) Format name `
Ex. of frame ASCII value
Heade r
NAK H15
Station No.
H10 H3130
Command
R(r) H52(72)
Command type
SB H5342
Tail
ETX H03
Frame check
BCC
Description When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC, and sent. Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to 9.1.4 XGT dedicated communication error codes and countermeasures.
This example supposes that 2 WORDs from M000 of station No. 10 is read (It supposes that M000 = H1234, M001 = H5678.) 1) PC request format (PC XGB)
Format name Frame (Example) ASCII value Header Station No. ENQ H05 H0A H3041 Command Command type Device length R(r) H52(72) SB H5342 H06 H3036 Device name %MW000 H254D3030 30 Number of data H02 H3032 Tail EOT H04 Frame check BCC
7-10
7-11
Header Station No. Command ENQ H05 H20 H3230 W(w) H57(77)
Device Name
Data
.....
ASCII value
1 block (setting can be repeated up to max. 16 blocks) Item BCC Description When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC. This specifies how much of the blocks composed of "[device length][device name]" are in this request Format. This can be set up to 16. Therefore, the value of [Number of blocks] must be set between H01(ASCII value:3031)-H10 (ASCII value:3030). This indicates the number of name's characters that means device, which is allowable up to 16 characters. This value is one of ASCII converted from hex type, and the range is from H01 (ASCII value: 3031) to H10 (ASCII value:3130). Address to be actually read is entered. This must be ASCII value within 16 characters, and in this name, digits, upper/lower case, and '%' only is allowable to be entered. If the value to be written in %MW100 area is H A, the data Format must be H000A. If the value to be written in %MW100 area is H A, the data Format must be H000A. In data area, the ASCII value converted from hex data is entered.
Example 1 If type of data to be currently written is WORD, the data is H1234, ASCII code converted value of this is "31323334" and this content must be entered in data area. Namely, most significant value must be sent first, least significant value last. Note Device data types of each block must be the same. If data type is Bit, the data to be written is indicated by bytes of hex. Namely, if Bit value is 0, it must be indicated by H00 (3030), and if 1, by H01 (3031).
7-12
Station No.
H20 H3230
Command
W(w) H57(77)
Command type
SS H5353
Tail
ETX H03
Frame check
BCC
Item BCC
Description When command is lowercase (r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC, and sent.
Station No.
H20 H3230
Command
W(w) H57(77)
Command type
SS H5353
(Hex 2 Byte)
H4252 H34323532
Tail
ETX H03
Frame check
BCC
Description When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC, and sent. Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to 10.1.4 XGT dedicated communication error codes and countermeasures.
(e) Example This example supposes that "HFF" is written in M230 of station No. 1. 1) PC request format (PC XGB)
Format name Header Frame (Example) ENQ ASCII value
H05
Device Length
H06 H3036
Device Name
%MW230 H254D573233 30
Data
H00FF H30304646
Tail
EOT H04
Frame check
BCC
Station No.
H01 H3031
Command
W(w) H57(77)
Command type
SS H5353
Tail
ETX H03
Frame check
BCC
Station No.
H01 H3031
Command
W(w) H57(77)
Command type
SS H5353
Error code
Error code (2 Byte) Error code (4 Byte)
Tail
ETX H03
Frame check
BCC
7-13
Note Number of data specifies the number according to the type of device. Namely, if the data type of device is WORD, and number of data is 5, it means that 5 WORDs should be written. Number of data can be used up to 120Bytes (60 Words).
Description When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC. This indicates the number of name's characters that means device, which is allowable up to 16 characters. This value is one of ASCII converted from hex type, and the range is from H01 (ASCII value: 3031) to H10 (ASCII value: 3130). Address to be actually read. This must be ASCII value within 16 characters, and in this name, digits, upper/lower case, and '%' only are allowable to be entered.
Device
Station No.
H10 H3130
Command
W(w) H57(77)
Command type
SB H5342
Tail
ETX H03
Frame check
BCC
Item BCC
Description When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC, and sent.
7-14
Station No.
H10 H3130
Command
W(w) H57(77)
Command type
SB H5342
Tail
EOT H03
Frame check
BCC
Item BCC
Description When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC, and sent. Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to 9.1.4 XGT dedicated communication error codes and countermeasures.
Error code
(e) Example
This example supposes that 2 byte HAA15 is written in D000 of station No. 1. 1) PC request format (PC XGB)
Format name Header Frame (Example) ASCII value
ENQ H05
Device Length
H06 H3036
Device
%DW000 H2544573030 30
Number of data
H01 H3031
Data
HAA15 H41413135
Tail
EOT H04
Frame check
BCC
H3031 H57(77)
Station No.
H01 H3031
Command
W(w) H57(77)
Command type
SB H5342
Tail
ETX H03
Frame check
BCC
Station No.
01 H3031
Command
W(w) H57(77)
Command type
SB H5342
Error code
Error code (2) Error code (4)
Tail
ETX H03
Frame check
BCC
7-15
Description When command is lowercase(x), only one lower byte of the value resulted by adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII, added to BCC. This can be registered up to 16 (0 to 15, H00-H0F), and if an already registered No. is registered again, the one currently being executed is registered. This is used to before EOT in command of Formats of separate reading of variable, continuous reading, and named variable reading.
*1 : Register Format of request Formats must select and use only one of the followings. 1) Individual reading of device RSS
Number of blocks (2
Byte)
...
1 block (max. 16 blocks) 2) Continuous reading of device RSB Device length (2 Byte) Device name (16 Byte) Number of data
ACK H06
H10 H3130
X(x) H58(78)
ETX H03
BCC
Item BCC
When command is lowercase(x), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC, and sent.
7-16
Description When command is one of lower case(x), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC, and sent. Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to 9.1.4 XGT dedicated communication error codes and countermeasures.
(e) Example This example supposes that device M000 of station NO. 1 is monitor registered. 1) PC request format (PC XGB)
Station Registration Header Command No. No. ENQ H01 X(x) H01 H3031 Registration Format R## RSS Number of Device length blocks H01 H06 Device name %MW000 H2554573030 30 Tail EOT H04 Frame check BCC
Format name
ACK H06
H01 H3031
X(x) H58(78)
H01 H3031
ETX H03
BCC
Tail
Frame check
NAK H15
H01 H3031
X(x) H58(78)
H01 H3031
ETX H03
BCC
7-17
Station No.
H10 H3130
Command
Y(y) H59(79)
Registration No.
H09 H3039
Tail
EOT H03
Frame check
BCC
Description Register No. uses the same number registered during monitor register for monitor execution. It is possible to set from 00-09 (H00-H09). When command is lower case(y), only one lower byte of the value resulted by adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII, added to BCC.
(c) XGB Response format (ACK response) 1) In case that the register Format of register No. is the Individual reading of device
Format name Frame (Example) ASCII Header ACK H06 Station No. H10 H3130 Command Y(y) H59(79) Registration Number of Number of data No. Blocks H09 H3039 H01 H3031 H02 H3032 Data H9183 H39313833 Tail ETX H03 Frame check BCC
2) In case that the register Format of register No. is the continuous reading of device
Format name Frame (Example) ASCII value Header Station No. Command ACK H06 H10 H3130 Y(y) H59(79) Registration No. H09 H3039 Number of data H04 H3034 Data H9183AABB Tail ETX Frame check BCC
H39313833414142 H03 42
Description When command is lowercase(y), only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC, and sent. Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to 9.1.4 XGT dedicated communication error codes and countermeasures. 7-18
H3031 H59(79)
H32333432 H03
7-19
Connection setting 1
1. Select [Online]-[Connection Settings] or click icon( 2. Click [Connect] after setting. 2 Read I/O information
) )
Select [Online] [Read I/O Information] or click icon ( Reads the information about currently equipped module.
Standard Settings
1. Double-click Cnet I/F module and execute standard setting window. Set Type, Speed, Data bit, Stop bit, station no. of connection menu. 2. Modem initialization is available in case of dial modem, not null modem. 3. Delay time setting: when sending frame, it sends frame after specific delay time. (a) Operation setting: Available when type is RS-422/485. * When using as Modbus ASCII server, data bit should be 7.
8-1
Sequence 4
Setting method 1. Select active mode of server for user to use. 2. XGB Cnet I/F module supports XGT server, Modbus ASCII server, Modbus RTU server.
Writing parameter 5
1. Select [Online] [Write Parameter] or click icon ( ) 2. Click [OK]. 3. If you click [OK] button, parameter is sent to PLC. If you dont reset relevant module, XGB Cnet I/F module acts as changed parameter.
1. Select [Online] [System Diagnosis] or click icon ( ). 2. Click the right button on the relevant module and click Frame Monitor or Status By Service to check
8-2
Active mode
P2P settings 3
1. After selecting P2P setting window, double-clock P2P block address and input base and slot no. of communication module. 2. P2P 01 is fixed as built-in Cnet and base and slot is fixed as 0 and you cant change that.
1. Double-click P2P driver and select protocol according to each channel. 2. P2P driver supports user definition frame, XGT client, Modbus RTU/ASCII client.
8-3
Sequence
Procedure
Setting method
P2P block setting 5 1. P2P items are activated differently according to type of client set in the channel. 2. Write shell according to protocol * In case of user definition frame, P2P block can be set when user definition frame is written.
Writing parameter 6
1. Select [Online] [Write Parameter] or click icon ( ). 2. Click [OK]. 3. If you press [OK], parameter is sent to PLC. If you dont reset relevant module, XGB Cnet I/F module acts as changed parameter.
1. Select [Online] [Enable Link] or click icon ( 2. Click the P2P to enable and click Write.
).
8-4
Sequence
Procedure
Setting method
1. Select [Online] [System Diagnosis] or click icon ( ). 2. Click the right button on the relevant module and click Frame Monitor or Status By Service to check.
8-5
[Figure 8.2.1] Example of dedicated service system configuration Client setting Type Main unit Communication module Communication type Communication speed Data bit Stop bit Parity bit Modem type Operation cycle Operation Write status Read Server setting Type Main unit Communication module Communication type Communication speed Data bit Stop bit Parity bit Modem type Station no.
Setting content XBM-DN16S XBL-C21A (1 slot) RS-232C 38,400 8 1 None Null modem 200ms Saves 1 word of M100 at client to M100 at server Saves 1 word of D100 at server to M110 at client [Table 8.2.1] client setting Setting content XBC-DN32H Main unit built-in (RS-232C) RS-232C 38,400 8 1 None Null modem 1 [Table 8.2.2] Server setting 8-6
Connection settings
1. Select [Online]-[Connection settings] and click ( ). 2. After setting the connection option according to user, click the connection. Reading IO Select [Online]-[Read IO Information] and click icon ( ). information IO information of currently mounted is shown on the project window.
Standard settings 3
1. Set standard settings at built-in communication channel to be same with [Table 8.2.2]s standard settings. 2. Since active mode acts as dedicated communication server, set as XGT server.
8-7
Connection settings
1. Select [Online]-[Connection settings] or click icon ( ). 2. After setting the connection option according to user, click the connection. Reading IO Select [Online]-[Read IO Information] and click icon ( ). information IO information of currently mounted is shown on the project window.
Standard settings 3
1. Select XBL-C21A and set standard setting at channel 2 to be same with setting described in [Table 8.2.1]. 2. In case of acting as client, station setting doesnt have the meaning so set temporary station (0~31). 3. When acting as client, active mode should be [Use P2P settings].
8-8
After standard settings, P2P channel and P2P block should be set. Setting methods are as follows. Sequence 1 Procedure P2P setting Communic ation module settings 1. Double-click of project window. (P2P 01 is fixed as built-in communication module) 2. Select slot number (no. 1) acting as client and press OK. P2P channel setting 1. Double-click 1. Double-click of P2P 02 and set P2P driver of channel 2 as of P2P 02. Setting method P2P bottom of project window.
Click
1. Channel: Select ch.2 set as XGT client set in P2P channel. 2. Since it executes write operation, select WRITE. 3. Conditional flag: to send frame every 200ms, use flag F92. 4. Command type, Data type: to write 1 word, select single and 2 byte. 5. No. of variable: since no. of word is 1, select 1. 6. Destination station number: input 1 as station number of server. 7. Setting: after setting Read area and Save area, click OK. 1) Read area: device address of data saved in the client 2) Save area: device address of server to save data * If all settings are completed, color of index of channel becomes black.
1. Channel, conditional flag, command type, data type, No. of variable, destination station no.: Same as described in setting is writing. 2. P2P function: select READ. 3. Setting: after setting Read area and Save area, click [OK]. 1) Read area: device address of data saved in server 2) Save area: device address of client to save
8-9
Sequence
Procedure
Setting method
Writing parameter 7
1. Select [Online] [Write Parameter] or click icon ( ). 2. Click [OK]. 3. If writing parameter is complete After clicking [OK], changed parameter is applied automatically.
1. Select [Online] [Enable Link] or click icon ( 2. Click the P2P to enable and click Write.
8-10
System Diagnosis 1
1. Connect with cilent by XG-PD and select [Online] [System Diagnosis] or click ( ). 2. Click the right button on the relevant module and click Frame Monitor or Status By Service.
Frame monitor 2
1. Select channel 2 and click Start. 2. Since dedicated service is ASCII communication, select View by ASCII. * In case of Modbus RTU, select View by HEX and in case of Modbus ASCII, select View by ASCII.
8-11
Client
Server
[Figure 8.3.1] XGT Modbus communication system configuration example Mount XBL-C41A on no. 1 slot of client PLC Client setting Main unit XBM-DN32S Communication XBL-C41A(no.1 Slot) module Communication type RS-485 Communication speed 38,400 Data bit 8 Stop bit 1 Parity bit None Operation cycle 200ms Write 1 word of M100 of client to M1 of server Write 4 words from D0 of client to M2~M5 of server Write Write 15th bit of M2 to 2nd bit of M20 of server Write 0~15th bit of M2 to 0~15th bit of M21 of server Operation status Read 1 word of M2 of server and save it at M160 of client Read 4 words from P0 of server and save it at M150~M153 Read Read 1st bit of P2 of server and save it at 1st bit of M170. Read 0th ~ 15th bit of M10 of server and save it at 0th ~ 15th of M180 of client. [Table 8.3.1] client setting Server setting Main unit XBC-DN32H Communication type Built-in RS-485 Communication speed 38,400 Data bit 8 Stop bit 1 Parity bit None Station no. 1 Bit read area P0 Address Bit write area M0 Start Address address Word write P0 area Address Word write M0 area Address [Table 8.3.2] server setting
8-12
Connection setting
1. Select [Online]-[Connection settings] or click icon ( ) 2. After setting the connection option according to user, click the connection. Reading IO Select [Online]-[Read IO Information] and click icon ( ). information IO information of currently mounted is shown on the project window.
Standard settings
1. Write setting value as same with [Table 8.3.2] at built-in communication channel 1. 2. Set active mode as Modbus RTU server.
Modbus setting 4
1. Bit read area Address: P00000 2. Bit write area Address: M0000 3. Word read area Address: P0000 4. Word write area Address: M0000 * In the Bit read/write area Address, upper 4 digit is word address and the last digit is bit address (P00110: 0th bit of P11th word)
8-13
Sequence
Procedure
Setting method
Writing parameter 5
1. Select [Online] [Write Parameter] or click icon ( ). 2. Click [OK] 3. If writing parameter is complete after clicking [OK] button, changed parameter is applied automatically.
8-14
Connection setting
1. Select [Online]-[Connection settings] or click icon ( ). 2. After setting the connection option according to user, click the connection. Reading IO Select [Online]-[Read IO Information] and click icon ( ). information IO information of currently mounted is shown on the project window.
Standard settings 3
1. Select XBL-C41A and write standard settings to be same with [Table 8.3.1] at channel 2. Since station setting doesnt have meaning when acting as client, set as temporary station number (0~31). 3. When acting as client mode, active mode should be Use P2P settings.
8-15
After standard settings, P2P channel and P2P block should be set. Setting methods are as follows. Sequence 1 Procedure P2P setting Communic ation module setting 1. Double-click of project window. (P2P 01 is fixed as built-in communication) 2. Select slot no. (No. 1) of client module and press OK. P2P channel setting 1. Double-click and click [OK]. 1. Double-click of P2P 01 and set P2P driver of channel 1 as Modbus RTU client of P2P 02. Setting method bottom of project window.
Click
Write 1 word of M100 of client to M1 of server 1. Ch.: Select ch.2 set as Modbus RTU client set in P2P channel. 2. P2P function: select WRITE. 3. Conditional flag: to send frame every 200ms, use flag F92. 4. Command type, Data type: to write 1 word, select single and 2 byte. 5. Destination station number: select station number of server. 6. Setting: after setting Read area and Save area, click OK. (1) Read area: device address saved in the client (M100) (2) Save area: deice address of server to save (0x40001: M1) * If all settings are completed, color of index of channel becomes black.
Setting of writing operation (2) 6 Write 4 words from D0 of client to M2~M5 of server 1. Ch., P2P function, conditional flag, destination station no.: same with step 5 2. Command type, Data type: because of writing continuous 4words, select Continuous, WORD 3. Data size: because of 4 words, input 4. 4. Setting: after setting Read area and Save area, click OK. (1) Read area: device address saved in the client (D0) (2) Save area: deice address of server to save (0x40002 : M2) 8-16
Sequence
Procedure
Setting method
7 Write 15th bit of M2 to 2nd bit of M20 of server 1. Ch., P2P function, conditional flag, destination station no.: same with step 5 2. Data type: select bit 3. Setting: after setting Read area and Save area, click OK. (1) Read area: device address saved in the client (M1.F : 15th bit of M1) (2) Save area: deice address of server to save (0x00142: 2nd bit of M20) * When inputting M1.F, it is converted into M0001F in the XG-PD. * Device address of server is Hex value.
Setting of writing operation (4) 8 Write 0~15th bit of M2 to 0~15th bit of M21 of server 1. Ch., P2P function, conditional flag, destination station no.: same with step 7 2. Command type: select continuous. 3. Setting: after setting Read area and Save area, click OK. (1) Read area: device address saved in the client (M2.0) (2) Save area: deice address of server to save (0x00150)
Read 1 word of M2 of server and save it at M160 of client 1. Ch., Conditional flag, Command type, Data type, Destination station no.: same with step 5 2. P2P function: select READ 3. Setting: after setting Read area and Save area, click OK. (1) Read area: device address saved in server (0x40002) (2) Save area: device address of client to save (M0160)
8-17
Sequence
Procedure
Setting method
Setting of reading operation (2) 10 Read 4 words from P0 of server and save it at M150~M153 1. Ch., Conditional flag, Command type, Data type, Destination station no.: same with step 6 2. P2P function: select READ. 3. Setting: after setting Read area and Save area, click OK. (1) Read area: device address saved in server (0x30000) (2) Save area: device address of client to save (M0150)
Setting of reading operation (3) 11 Read 1st bit of P2 of server and save it at 1st bit of M170. 1. Ch., Conditional flag, Command type, Data type, Destination station no.: same with step 7 2. P2P function: select READ 3. Setting: after setting Read area and Save area, click OK. (1) Read area: device address saved in server (0x00021) (2) Save area: device address of client to save (M170.1)
Setting of reading operation (4) 12 Read 0th ~ 15th bit of M10 of server and save it at 0th ~ 15th of M180 of client. 1. Ch., Conditional flag, Command type, Data type, Destination station no.: same with step 8 2. P2P function: select READ 3. Setting: after setting Read area and Save area, click OK. (1) Read area: device address saved in server (0x100A0) (2) Save area: device address of client to save (M180.0)
8-18
Sequence
Procedure
Setting method
Writing parameter 13
1. Select [Online] [Write Parameter] or click icon ( ). 2. Click [OK]. 3. If writing parameter is complete after click OK, changed parameter is applied automatically.
14
1. Select [Online] [Enable Link] or click icon ( 2. Click the P2P to enable and click Write.
8-19
[Figure 8.4.1] User defined communication system configuration At this example, Cnet I/F module and partner device to communicate through user defined communication system configuration are as [Table 8.4.1]. Main unit XBC-DN32H Han-Young temperature controller Device name Communication PX7*Note2) Built-in RS-485 module Operation mode Client Server Protocol Communication type Communication speed Data bit Stop bit Parity bit Station no. Delay time
*note1)
Operation
100ms Reads present value and setting value from temperature controller every second and saves present value at MB200 and setting value at MB210. [Table 8.4.1] User defined communication system configuration
Note1) Delay
time is set to prevent from frame error when communication with device of which response is slow in case of RS-422/485 communication. It varies according to partner device and it has 50~100ms value generally.
8-20
(1) Writing example frame In this example, present value and setting value is saved in M device area of PLC. [Table 8.4.4] is frame requesting continuous data and [Table 8.4.5] is frame responding to request.
[Table 8.4.4] request frame DRS: command that request reading continuous D register value. No of data and start address of D register is necessary. In the example, no. of data is 2 and start address is 01.
8-21
1. After standard settings, double-click P2P 01 in the P2P window. 2. As for built-in communication, base and slot is fixed as 0. Click OK. 3. Double-click P2P Channel and select User frame definition in Channel 2.
1. Click user definition frame and click right button of mouse. 2. Click Add Group and input group name (DRS) and select frame type as transmission.
3 1. Click Add Frame and select type HEAD, TAIL, BODY and input BODY name 2. BODYs name is test here.
1. If you double-click editor window after selecting DRS.HEAD tap at right screen, segment setting screen is created. 2. Select Numerical constant which indicates Hex as ASCII code as Form. Input Hex value 2 which indicates STX. 8-22
Sequence
Setting method
1. Select Numerical constant which indicates Hex as ASCII code as Form. Input Hex value D, A which indicates CR and LF.
6 1. Double-click DRS.test tap and edit segment like the following. 2. Write frame requesting reading data of continuous 2 areas starting first of D register of station no.1. 3. When double-clicking editor screen and writing frame through segment edition, size of one segment is less than 10.
8-23
(3) Writing frame to receive response frame of temperature controller Writing response frame (Reception frame) Sequence Setting method
1. Write like step 2 of frame that request reading data. At this time, set Frame type as reception. 2. Frame name is DRS_RECE.
1. Click Add Frame and select HEAD, TAIL, BODY as type and input BODY name. 2. BODYs name is RECE_DRS here. 1. Method writing HEAD, TAIL is same with step 4~5 of method writing frame that request reading data.
4 1. To save present temperature value in MB200 and setting value in MB210, set the storage area of 1st and 2nd data as set in [Table 8.4.1]. 2. Since data size of data 1 and 2 is 4 byte, select Fix sized variable and input 4 in Size 3. To select storage area of data, check Assign memory.
8-24
(4) Writing P2P transmission/reception block Write P2P TX/RX block as follows by using user definition communication segment written ahead. Sequence Setting method
1. Double-click P2P block of P2P 01. 2. Input channel selected at P2P channel (user frame definition). 3. In case P2P function is TX frame, select SEND. In case P2P function is RX, select RECEIVE. 4. Conditional flag is activated when P2P function is SEND. 5. Since it reads data every 1 second, use F93 as conditional flag. 6. Click Setting of RX frame and set save area of current temperature and setting value. Execute Write Parameter and Enable Link.
(5) Checking TRX data Check whether written frame is transmitted/received properly Sequence Setting method
1. Select [Online]-[System Diagnsis] or click icon ( ) 2. After clicking relevant module and click right button of mouse, select Status by service or frame monitor. 3. When frame is not dealt with properly, unknown message is displayed. Check device area by device monitor of XG-5000.
8-25
Chapter 9 Diagnosis
Chapter 9 Diagnosis
With XG-PD used, the status of the system and the network can be checked and diagnosed. Diagnosis function is composed as described below CPU module information Communication module information Frame monitor Status by service
[Figure 9.1.1] System diagnosis window Select [Online] [System Dianosis] and click the icon ( ). Click the right button on the the relevant module and click Frame Monitor or Status By Service to check.
9-1
Chapter 9 Diagnosis
1. Select [Online] [System Diagnosis] or click the icon ( ). 2. You can check the status of main unit by clicking CPU module information after clicking main unit.
1. Select [Online] [System Diagnosis] or click the icon ( ). 2. You can check communication module status by clicking communication module information and click the right button after clicking Cnet I/F module and built-in communication. 3. Meaning of each item of communication module information is as follows.
Item Module kind Base number Slot number Station number Connection method Hardware error Hardware version OS version P2P System parameter information Content Information of module kind under diagnosis Base information of communication module under diagnosis. It is fixed as 0 at XGB PLC. Slot no. of communication module under diagnosis In case of built-in communication, it is fixed as 0. Station no. of relevant channel used at dedicated service, P2P Information of communication type (RS-232C, RS-422) of relevant channel Indicates whether hardware of communication module is normal or not. Version of communication module hardware Indicates version of communication module OS Indicates whether P2P communication is activated or not Whether standard communication parameter is downloaded or not Standard communication parameter error information expression Ref.
9-2
Chapter 9 Diagnosis
Frame monitor
1. Select [Online] [System Diagnosis] or click the icon ( ). 2. If you click right button after clinking Cnet I/F module and click frame monitor, you can monitor current communication data. 3. If you use frame monitor function, you can check frame of TRX data between Cnet I/F module and external communication device easily. 4. Detailed content of information indicated frame monitor window is as follows.
Item Content Ref.
Information of base number under diagnosis Information of slot number under diagnosis Select channel to monitor Indicates whether it is TX or RX frame. Indicates the protocol type 1) XGT server 2) XGT client 3) Modbus server 4) Modbus client 5) User definition frame 6) Unknown: frame that Cnet cant deal with Size of frame Time when sending/receiving the frame
In case main unit is standard type (XBM-D***S), it indicates elapsed time from start.
Result Frame monitor window Size Time Frame data View by HEX View by ASCII Start Stop
Close
Indicates the frame data Indicates the frame data as HEX Indicates the frame data as ASCII Starts the frame monitor Stops the frame monitor
Closes the frame monitor window
9-3
Chapter 9 Diagnosis
Dedicated service
1. Select [Online] [System Diagnosis] or click the icon ( ). 2. Click the right button on the the Cnet I/F module and click Status By Service. 3. Click Dedicated Service tap. 4. Check the status by service by clicking Multiple Reading and Refresh 5. Detailed content of information indicated in dedicated service window is as follows. Classification Multiple reading/Refresh Item Multiple reading Refresh Standard information Base Number Slot Number Link type Dedicated service information Port number Service count Error count Status Check list Content Checks the dedicated service status every second. Checks the dedicated service status information at started time Information of base number under diagnosis Information of slot number under diagnosis Type of communication module under diagnosis Drive type by service Channel number Indicates how many dedicated service communication is done Indicates how many error occurs during dedicated service communication Indicates status of dedicated service communication Detail result
Dedicated Service
P2P service
9-4
Chapter 9 Diagnosis
1. Select [Online]->[System diagnosis] or click the icon ( ). 2. Click the right button on the the Cnet I/F module and click Status By Service. 3. Click P2P service of Status by Service 4. Click mutiple reading and check Status by Service. Classification Item Base number Standard Slot number information Link type P2P parameter P2P service existence information Driver type Block number Detailed information Port number Status Service count Error count Multiple reading Refresh Contents Information of base number under diagnosis Information of slot number under diagnosis Type of communication module under diagnosis Indicates whether P2P parameter exists or not Indicates the P2P driver by port XGT/Modbus/User definition frame Available range:0~63 Only block under operation is indicated. Indicates the channel number Indicates the status by service Indicates how many P2P service is done. Indicates how many error occurs during service Checks the P2P service status every second. Check the P2P service status when refresh is done.
P2P service
Multiple reading/Refresh
Service status code
It is used to check whether Cnet I/F module is normal or not. Dedicated service Status
0 1 2 3
Meaning Normal Error of RX frame head (There is no ACK/NAK.) Error of RX frame tail (There is no tail.) BCC error of RX frame Station number of RX frame is different with self station number (Self station number = 0) In case of not get response from CPU RX frame size exceeds the modbus max. frame size RX frame is not Modbus ASCII/RTU. HEX conversion error in Modbus
Meaning Normal Error of max. station number (Available range: 0~31) Time out 1. Modbus address error 2. Commands except Read/Write are used.
9 0A 0B 0C 0D
9-5
Chapter 9 Diagnosis
In case of enabling link, the user enabled the link where P2P is not set
1. In Enable Link menu of XG5000, check P2P setting number and delete P2P number not selected properly. 2. After disconnecting XG-PD, connect XG5000 again and check
9.2.2 Trouble shooting when communication is not done after P2P client setting
Phenomenon Reason In case CPU is stop mode Tough communication setting is completed, Tx/Rx LED of Cnet I/F doesnt flicker Non-coincidence of communication standard parameter between client and server Enable Link setting error Trouble shooting Connect XG5000 and check CPU mode. If CPU mode is stop, change mode into RUN. Connect XG-PD and click [File] [Open from PLC]. Check standard settings of module acting as client and server. After executing P2P parameter, enable right P2P link
9.2.3 Trouble shooting when response frame is missed in case of acting as client and using RS-485
Phenomenon Reason Trouble shooting 1. Consider communication time and change P2P conditional flag. 2. Communication time: transmission time + reception time - transmission time: conditional flag+CPU Scan Time+reaction time of communication module+data transmission time - reception time: CPU Scan Time + reaction time of communication module+data transmission time 1. Increase Delay time in standard settings of XG-PD.
After setting diverse P2P parameter in P2P block, if frame monitor is executed, response frame is missed.
9-6
Chapter 9 Diagnosis
9.2.4 Two response frame are dealt with as unknown when executing frame monitor
Phenomenon Two response frame are dealt with as unknown when executing frame monitor Reason Communication type in XG-PD is set as RS-422 but output wiring method is RS485 Trouble shooting Change communication type as RS-485 and write it to PLC.
In case parity bit setting is not coincident Unable to analyze TRX frame In case stop bit setting is not coincident In case communication speed setting is not coincident In case of multi drop, terminal resistance is not installed
9-7
Chapter 9 Diagnosis
9-8
Danger
Please design protection circuit at the external of PLC for entire system to operate safely because an abnormal output or an malfunction may cause accident when any error of external power or malfunction of PLC module. (1) It should be installed at the external side of PLC to emergency stop circuit, protection circuit, interlock circuit of opposition action such as forward /reverse operation and interlock circuit for protecting machine damage such as upper/lower limit of positioning. (2) If PLC detects the following error, all operation stops and all output is off. (Available to hold output according to parameter setting) (a) When over current protection equipment or over voltage protection operates (b) When self diagnosis function error such as WDT error in PLC CPU occurs In case of error about IO control part that is not detected by PLC CPU, all output is off. Design Fail Safe circuit at the external of PLC for machine to operate safely. Refer to 10.2 Fail Safe circuit. (1) Because of error of output device, Relay, TR, etc., output may not be normal. About output signal that may cause the heavy accident, design supervisory circuit to external. In case load current more than rating or over current by load short flows continuously, danger of heat, fire may occur so design safety circuit to external such as fuse. Design for external power supply to be done first after PLC power supply is done. If external power supply is done first, it may cause accident by misoutput, misoperation. In case communication error occurs, for operation status of each station, refer to each communication manual. In case of controlling the PLC while peripheral is connected to CPU module, configure the interlock circuit for system to operate safely. During operation, in case of executing program change, operation status change, familiarize the manual and check the safety status. Especially, in case of controlling long distance PLC, user may not response to error of PLC promptly because of communication error or etc. Limit how to take action in case of data communication error between PLC CPU and external device adding installing interlock circuit at the PLC program.
10 1
Danger
Dont close the control line or communication cable to main circuit or power line. Distance should be more than 10mmm. It may cause malfunction by noise. In case of controlling lamp load, heater, solenoid valve, etc. in case of Off -> On, large current (10 times of normal current) may flows, so consider changing the module to module that has margin at rated current. Process output may not work properly according to difference of delay of PLC main power and external power for process (especially DC in case of PLC power On-Off and of start time. For example, in case of turning on PLC main power after supplying external power for process, DC output module may malfunction when PLC is on, so configure the circuit to turn on the PLC main power first Or in case of external power error or PLC error, it may cause the malfunction. Not to lead above error to entire system, part causing breakdown of machine or accident should be configured at the external of PLC
10 2
In case of AC . DC
Power
Trans Fuse
Trans Fuse
Trans Fuse
F0045
DC power
F009C
Start switch
Pm
Pm
Program
Pm
Tm
Stop SW
Voltage equipped
relay
Stop by limit
Output module
Configure part that lead opposite operation or breakdown such as interlock circuit forward, reverse revolution by external interlock circuit
Output module
Start sequence of power In case of AC (1) Turn on power (2) Run CPU. (3) Turn on start switch (4) Output device runs by program through magnetic contactor (MC) [On]
Start sequence of power In case of AC DC Run CPU after power is on (1) Turn on RA2 as DC power on (2) Turn on timer after DC power is stabilized. (3) Turn on timer after DC power is stable. (4) Turn on start switch (5) Output device runs by program through magnetic contactor (MC) [On]
10 3
(2) System design circuit example (In case of using ERR contact point of power module)
Power
Trans Fuse
Trans Fuse
F0045 Pm
DC power
F009C Pm
Fuse
Pm
Tm
Tm
Start SW
Program
Stop SW
Output module
Pm Pn
ERR
RA3
Output module
Configure part that lead opposite operation or breakdown such as interlock circuit forward, reverse revolution by external interlock circuit
ERR contact point off to output device power off (Emergency stop, stop by limit)
Start sequence of power In case of AC DC (1) Run CPU after turning on power. (2) Turn on RA2 with DC power supplied (3) Turn on timer after DC power is stable (4) Turn on start switch (5) Turn on start switch Output device runs by program through magnetic contactor (MC) [On] 10 4
Main unit
Input 16 point
Input 16 point
Input 16 point
Input 16 point
Output 16 point
Output 16 point
Output module for fail safe Equip output module for fail safe to last slot of system. [Fail safe circuit example] On delay timer P80 F0093 P80 P81 ~ P8F P80 24V
0.5s 0.5s
0V T1
Output module
T2
DC24 MC
CPU unit Since P80 turn on/off every 0.5s, use TR output.
10 5
I24V
DC24V AC power 100V~240V
Main unit
constant Voltage transformer
input
Special input
DC5V
I5V
Iout
load
Iin
DC power 24V
AC power 100V~240V
10 6
10 7
Warning
Module must be mounted to hook for fixation properly before its fixation. The module may be damaged from over-applied force. If module is not mounted properly, it may cause malfunction. Do not drop or impact the module case, terminal block connector. Do not separate the PCB from case.
(1) Equipment of module Eliminate the extension cover at the upper of module. Push the module and connect it in agreement with hook for fixation of four edges and hook for connection at the bottom. After connection, get down the hook for fixation at the upper part and lower part and fix it completely.
10 8
Caution
When separating module, dont force over-applied power. If so, hook may be damaged.
10 9
30 or above
*1
P PLC
20 or above
*3
a n e l
30 or above
*1
5 or above*1
5 or above
*1 : In case height of wiring duct is less than 50 mm (except this 40mm or above) *2 : In case of equipping cable without removing near module, 20mm or above *3 : In case of connector type, 80mm or above (4) Module equipment direction (a) For easy ventilation, install like the following figure.
10 10
(5) Distance with other device To avoid radiation noise or heat, keep the distance between PLC and device (connector and relay) as far as the following figure. Device installed in front of PLC: 100 or above Device installed beside PLC: 50 or above
100mm or above
50mm or above
50mm or above
10 11
Induced load
Surge killer
Induced load
+ Diode -
(f) Terminal block Check close adhesion status. Let no foreign material of wire enter into PLC when wring terminal block or processing screw hole. At this case, it may cause malfunction. (g) Dont impact to IO module or dont disassemble the PCB from case.
10 12
10.3 Wire
In case using system, it describes caution about wiring.
Danger
When wiring, cut off the external power. If all power is cut, it may cause electric shock or damage of product. In case of flowing electric or testing after wiring, equip terminal cover included in product. It not, it may cause electric shock.
Caution
Do D type ground (type 3 ground) or above dedicated for PLC for FG and LG terminal. It may cause electric shock or malfunction. When wiring module, check the rated voltage and terminal array and do properly. If rating is different, it may cause fire, malfunction. For external connecting connector, use designated device and solder If connecting is not safe, it may cause short, fire, malfunction. For screwing, use designated torque range. If it is not fit, it may cause short, fire, malfunction. Let no foreign material enter such as garbage or disconnection part into module. It may cause fire, malfunction, error.
AC power
AC100-240V
BA 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01
BA 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01
RS-232C
(2) Connect power that include small noise between line and earth. (When there are many noise, connect insulated transformer.)
10 13
Main unit
Main power AC220V PLC power Constant Voltage Transformer
AC100-240V
IO power
(4) If using DC24V of the power module (a) Do not connect DC24V of several power modules in parallel. It may cause the destruction of a module. (b) If a power module can not meet the DC24V output capacity, supply DC24V externally as presented below.
24V
I O
24V
CPU
CPU
I O
24V
DC 24V I O
CPU
Power
Supply
(5) AC110V/AC220V/DC24V cables should be compactly twisted and connected in the shortest distance. (6) AC110V/AC220V cable should be as thick as possible(2mm2) to reduce voltage drop. (7) AC110V/ DC24V cables should not be installed close to main circuit cable(high voltage/high current) and I/O signal cable. They should be 100mm away from such cables
10 14
E2
Note (1) Isolate the grounding(E1) of lightning surge absorber from the grounding(E2) of the PLC. (2) Select a lightning surge absorber type so that the max. voltage may not the specified allowable voltage of the absorber. (9) When noise may be intruded inside it, use an insulated shielding transformer or noise filter. (10) Wiring of each input power should be twisted as short as possible and the wiring of shielding transformer or noise filter should not be arranged via a duct.
10 15
(5) When applying pipe-wiring, make sure to firmly ground the piping.
10 16
RX
Notes [Note1] For mode change during RUN, download parameter by using XG-PD. Though you dont reset the PLC, if download is complete, changed mode is applied.
10 17
Contents
Description Reports carrier detection of DCE to DTE Received data signal Transmitted data signal Reports ready communication of DTENote1 to DCE Note2 Ground line for signal Reports ready communication of DCE to DTE DTE asks DCE to send data DCE asks DTE to send data Reports ringing tone received from DCE to DTE
CD Carrier Detect RxD Received Data TxD Transmitted Data DTR SG DSR RTS CTS RI Data Terminal Ready Signal Ground Data Set Ready Request To Send Clear To Send Ring
[Figure 10.5.1] RS-232C 9-pin Connector Standard Channel RS-232C can communicate with external devices directly and also with remote communication devices using modem. When connecting modem, communication type of RS-232C must be set to modem with XG-PD, and when not using modem, it must be set to null modem
Notes [Note1] DTE: Data Terminal Equipment (Cnet I/F module) [Note2] DCE: Data Communication Equipment (external modem)
10 18
Modem side (25-PIN) Name CD RXD TXD DTR SG DSR RTS CTS RI Pin No. 8 3 2 20 7 6 4 5 22
[Figure 10.5.2] Cable Connection between RS-232C and Modem [Note] No.9, RI signal is not used in XBL-C21A I/F module. (2) How to connect connector for RS-232C in null modem mode In null modem mode, the connector can be connected in 3-line type as below. Computer/communication devices Name CD RXD TXD DTR SG DSR RTS CTS RI
Cnet (9-PIN) Pin No. 1 2 3 4 5 6 7 8 9 Name CD RXD TXD DTR SG DSR RTS CTS RI
10 19
Pin no. 1 2 3 4 5
Name 485485+ SG TX RX
Content 485 signal 485 + signal Signal Ground Transmitted Data Received Data
Function description Built-in RS-485- signal Built-in RS-485+ signal Signal ground Built-in RS-232C TX data signal Built-in RS-232C RX data signal
[Figure 10.5.4] RS-422 5-pin Connector Standard Built-in RS-232C channel doesnt support modem communication. In case of modem communication, use XBC-C21A. 1) Connection method in case of using built-in RS-232C In case of connecting as null modem mode, connect in 3 line type.
PC/Communication Connection no. and signal direction device Name SG TXD RXD [Figure 10.5.5] 3 line type connection
Pin no. 1 2
Name 485485+
10 20
Pin no. 1 2 3 4 5
Function description TX data (+) TX data (-) RX data (+) RX data (-) Signal ground
[Figure 10.5.7] RS-422 5 pin connector pin standard [Figure 10.5.8] indicates RS-422 communication cable connection example in case of single connection. Cnet (5-Pin) Pin no. 1 2 3 4 5 Name TX+ TXRX+ RXS.G(SG) [Figure 10.5.8] RS-422 connection [Figure 10.5.9] indicates RS-485 communication cable connection example in case of single connection Signal direction (Cnet<--->External device) External communication device RX+ RXTX+ TXS.G
1 2 3 4 5
10 21
Single and multi-drop connection with external device are available in XBL-C41A. [Figure 10.5.10], [Figure 10.5.11] are RS-422/RS-485 multi drop communication connection method. Master (XBL-C41A) Connecti Pin no. 1 2 3 4 5 Name TX+ TXRX+ RXS.G(SG) on External slave device#1 RX+ RXTX+ TXS.G [Figure 10.5.10] RS-422 connection Connecti on External slave device#2 RX+ RXTX+ TXS.G
Connect ion
1 2 3 4 5
10 22
Manufacturer: LS Cable
120 5
10
Insulator
Conductor
Insulator
AL/MYLER TA PE
10 23
(1) For communication via RS-422/RS-485 channel, terminal resistance from external must be connected. (2) Terminal resistance has the function to prevent distortion of signal by reflected wave of cable for longdistance communication, and the same resistance (1/2W) as characteristic impedance of cable must be connected to terminal of network. (3) When using the recommended cable in 10.6, connect terminal resistance of 120 to both ends of cable. Also when using other cable than recommended, the same resistance (1/2W) as characteristic impedance of cable must be connected to both ends of cable. Terminal Resistance: 1/2W, 120, tolerance of 5%
[Figure 10.7.1] Terminal resistance connection diagram in case of RS-422 (2) How to connect terminal resistance in case of RS-485
10 24
Chapter 11 Maintenance
Chapter 11 Maintenance
Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best conditions.
Ambient environment
111
Chapter 11 Maintenance
Ambient environment
PLC Conditions
0 ~ 55 C -. Measure with thermometer 5 ~ 95%RH and hygrometer -. measure corrosive gas There should be no corrosive gases The module should be move The module should be the unit mounted securely. Visual check Re-tighten screws Visual check Visual check Measure voltage between input terminals No dust or foreign material Screws should not be loose Proper clearance Connectors should not be loose. DC24V: DC20.4 ~ 28.8V
Retighten screws
Connecting conditions
112
(1) Module A standard element with a specific function to structure a system such as I/O board assembled to be inserted into the motherboard base Ex) CPU module, power module, I/O module (2) Unit A module or a group of modules as the minimum unit operating in a PLC system being consisted of a PLC system as it is assembled with other module or a group of modules Ex) basic unit, extension unit (3) PLC System A system consisting of PLC and peripherals structured to be controlled by a users program (4) XG5000 Programming tool creating, editing and debugging a program (PADT : Programming And Debugging Tool) (5) XG-PD Software executing diagnosis, writing, edition of basic parameter, high-speed link, P2P parameter of internal and external communication module (6) IO image area Internal memory area of CPU module installed for keeping IO status
A-1
(1) Communication type (a) Simplex This is the communication type that data is transferred in a constant direction. Information can not be transferred in the reverse direction. (b) Half-Duplex Data is transferred in two ways with one cable if time interval provided, though it cant be transferred simultaneously. (c) Full-Duplex Data is simultaneously transferred and received in two ways with two cables. (2) Transmission type (a) Serial transmission This type transmits bit by bit via 1 cable. The speed of transmission is slow, but the cost of installation is low and the software is simplified.
7 0 6 1 5 0 4 0 3 1 2 1 1 0 0 1
TX
RX
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
A-2
(b) Parallel transmission This type is used in printer, etc., which transmits data in unit of 1 byte, so the speed is high and the accuracy of data is reliable. However, the longer the transmission distance is, the higher the cost of installation is geometrically.
7 0
6 1
5 0
4 0
3 1
2 1
1 0
0 1
1 TX 0 1 1 0 0 1 0 RX
(3) Asynchronous Communication This communication type transmits characters one by one synchronously in serial transmission. At this time, synchronous signal (Clock, etc.) is not transmitted. Character code is transmitted with a start bit attached to the head of 1 character, and it is finished with a stop bit attached to the tail.
S T A R T (04H)
E O T
S T O P
P A R I T Y
S T A R T
S T O P
P A R I T Y
S T A R T
S T O P
P A R I T Y
S T A R T
S T O P
P A R I T Y
S T A R T
S T O P
P A R I T Y
S T A R T
S T O P
P A R I T Y
S T A R T (05H)
E N Q
Stop Bit
Parity Bit
Data Bits
Start Bit
A-3
(11) Half Duplex Communication Two-way communication is available, however simultaneous communication of transmission & receiving isnt available. This communication type is applied to RS-485 for instance. It is used a lot for multi-drop communication type which communicates via one signal line by several stations. Half Duplex Communication results from the transmission characteristic performed by stations one by one not allowing simultaneous transmission by multi stations due to the data damage of data impact caused by the simultaneous multi-transmission of the stations. The figure below shows an example of structure based on Half Duplex Communication. Each station in communication with the terminal as linked with each other can send or receive data via one line so to execute communication with all stations, where multi-sever is advantageously available. Client RX TX
RX Server
TX
RX Server
TX
RX Server
TX
RX Server
TX
(12) Full Duplex Communication Two way-communications of simultaneous transmission & receiving is available. This communication type is applied to RS-232C & RS-422. Since the transmission line is separated from the receiving line, simultaneous transmission & receiving is available without data impact, so called as Full Duplex Communication. The figure shows an example of structure based on RS-422 of Full Duplex Communication. Since transmission terminal of the client station and receiving terminals of the sever stations are connected to one line, and transmission terminals of the sever stations are linked with receiving terminal of the client station, the communication between sever stations is unavailable with the restricted function of multi-sever. Client RX TX
RX S
TX
RX
TX Server
RX
TX Server
RX
TX
Server
A-5
A-6
(15) Frame Frame is composed of transmitted and received data as in a specified form in data communication including additional information of segments [station No., command, parameter by command], control characters [ENQ, ACK, EOT, ETX] for synchronization, parity for detecting error, and BCC. The structure of frame used for serial communication of Cnet is as follows.
Request Frame
E N Q
Parameter by Commend
E O T
B C C
Head
Segment
Tail
Head
Segment
Tail
A C K
E T X
B C C
Response Frame
[Structure of general Tx/Rx frame] - Head: ASCII value indicating frame start. - Tail: ASCII value indicating frame end. - BCC (Block Check Character) Check data for Tx/Rx frame Used to inspect reliability of data with such various methods as ADD, OR, Exclusive OR, MULTPLY, etc (16) Reset This function is used to initialize the communication module with errors. Use XG-PD to select [On-Line] [Reset] so to execute Reset, which will restart PLC.
A-7
L000 %LX000
_HS1_RLINK
Bit
L001 %LX001
_HS1_LTRBL
Bit
L0020 %LX032 _HS1_STATE[k] ~ ~ (k = 00~63) L005F %LX095 L0060 %LX096 ~ ~ L009F %LX159 L0100 %LX160 ~ ~ L013F %LX223 L0140 %LX224 ~ ~ L017F %LX287 _HS1_MOD[k] (k = 00~63) _HS1_TRX[k] (k = 00~63) _HS1_ERR[k] (k = 00~63)
_HS1_STATE[k] = HS1MOD[k]&_HS1TRX[k]&(~_HS1_ERR[k])
Bit Array High speed link parameter 1, k block station RUN operation mode Indicates operation mode of station set in k data block of parameter. Normal communication with High speed link parameter 1, k block station Indicates if communication state of k data of parameter is communicated smoothly according to the setting. High speed link parameter 1, k block station operation error mode Indicates if the error occurs in the communication state of k data block of parameter. High speed link parameter 1, k block setting Indicates whether or not to set k data block of parameter.
Bit Array
A-
L0260 %LX416
_HS2_RLINK
Bit
L0261 %LX417
_HS2_LTRBL
Bit
%LX448 L0280 ~ _HS2_STATE[k] ~ L031F (k = 00~63) %LX511 L0320 ~ L035F L0360 ~ L039F L0400 ~ L043F L0440 ~ L047F %LX512 ~ %LX575 %LX576 ~ %LX639 %LX640 ~ %LX703 _HS2_MOD[k] (k = 00~63) _HS2_TRX[k] (k = 00~63) _HS2_ERR[k] (k = 00~63)
Bit Array
A-
Device L5120 L5121 L513 L514 L516 L5180 L5181 L519 L520 L522 L524~L529
IEC type %LX8192 %LX8193 %LW513 %LD257 %LD258 %LX8288 %LX8289 %LW519 %LD260 %LD264 %LW524 ~ %LW529 %LW530 ~ %LW535 %LW536 ~ %LW697 %LW698 ~ %LW703
Keyword _P2P1_NDR0 0 _P2P1_ERR0 0 _P2P1_STAT US00 _P2P1_SVCC NT00 _P2P1_ERRC NT00 _P2P1_NDR0 1 _P2P1_ERR0 1 _P2P1_STAT US01 _P2P1_SVCC NT01 _P2P1_ERRC NT01 -
Type Bit Bit Word DWord DWord Bit Bit Word DWord DWord Word
Description
Indicates P2P parameter 1, 0 Block service normal end. Indicates P2P parameter 1, 0 Block service abnormal end. Indicates error code in case of P2P parameter 1, 0 Block service abnormal end. Indicates P2P parameter 1, 0 Block service normal count. Indicates P2P parameter 1, 0 Block service abnormal count. P2P parameter 1, 1 Block service normal end. P2P parameter 1, 1 Block service abnormal end. Indicates error code in case of P2P parameter 1, 1 Block service abnormal end. Indicates P2P parameter 1, 1 Block service normal count. Indicates P2P parameter 1, 1 Block service abnormal count.
L530~L535
Word
L536~L697
Word
L698~L703
Word
A-
Keyword _P1B00SN _P1B00RD 1 _P1B00RS 1 _P1B00RD 2 _P1B00RS 2 _P1B00RD 3 _P1B00RS 3 _P1B00RD 4 _P1B00RS 4 _P1B00W D1 _P1B00WS 1 _P1B00W D2 _P1B00WS 2 _P1B00W D3 _P1B00WS 3 _P1B00W D4 _P1B00WS 4 -
Type Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word
Description
Saves another station no. of P2P parameter 1, 00 block. Saves area device 1 to read P2P parameter 1, 01 block. Saves area size 1 to read P2P parameter 1, 01 block. Saves area device 2 to read P2P parameter 1, 01 block. Saves area size 2 to read P2P parameter 1, 01 block. Saves area device 3 to read P2P parameter 1, 01 block. Saves area size 3 to read P2P parameter 1, 01 block. Saves area device 4 to read P2P parameter 1, 01 block. Saves area size 4 to read P2P parameter 1, 01 block. Saves area device 1 to save P2P parameter 1, 01 block. Saves area size 1 to save P2P parameter 1, 01 block. Saves area device 2 to save P2P parameter 1, 01 block. Saves area size 2 to save P2P parameter 1, 01 block. Saves area device 3 to save P2P parameter 1, 01 block. Saves area size 3 to save P2P parameter 1, 01 block. Saves area device 4 to save P2P parameter 1, 01 block. Saves area size 4 to save P2P parameter 1, 01 block. Saving area of Saving area of Saving area of Saving area of Saving area of P2P parameter 1, 01 block. P2P parameter 1, 02 block. P2P P2P parameter 1, 03~31 block. P2P parameter 2. P2P parameter 3.
Remark In XGB S type, Network register is available only monitoring. (Read Only)
A-
0004 0007
0090
Monitor execution error Monitor execution error Monitor reg. Error Device memory error
Reg. No. range exceeded Reg. No. range exceeded Other letter than applicable device is input Request exceeds the max range of 60
1232
1234
Unnecessary details exist as added. All the blocks shall be requested of the
1332
01rSS0205%MW1005%MB1 0
1432
Data value unavailable to convert to Hex Request exceeds the area each device supports.
01wSS0105%MW10AA%5
7132
area exceeded
01rSS0108%MWFFFFF
A-12
A-13
Appendix 4 Dimension
XBM-DN16S
PWR RUN ERR RS-232C RUN
P00~07
P20~27
-. XBM-DR16S
XBM-DR16S
PWR RUN ERR RS-232C RUN
P00~07
P20~27
A-
Appendix 4 Dimension
-. XBC-DR32H / XEC-DR32H
A-
Appendix 4 Dimension
-. XBC-DN64H / XEC-DN64H
-. XBC-DR64H / XEC-DR64H
A-
Appendix 4 Dimension
(3) Extension type Cnet I/F module -. XBL-C41A, XBL-C21A
A-
Warranty
1. Warranty Period The product you purchased will be guaranteed for 18 months from the date of manufacturing. 2. Scope of Warranty Any trouble or defect occurring for the above-mentioned period will be partially replaced or repaired. However, please note the following cases will be excluded from the scope of warranty. (1) Any trouble attributable to unreasonable condition, environment or handling otherwise specified in the manual, (2) Any trouble attributable to others products, (3) If the product is modified or repaired in any other place not designated by the company, (4) Due to unintended purposes (5) Owing to the reasons unexpected at the level of the contemporary science and technology when delivered. (6) Not attributable to the company; for instance, natural disasters or fire
3. Since the above warranty is limited to PLC unit only, make sure to use the product considering the safety for system configuration or applications.
Environmental Policy
LS Industrial Systems Co.,Ltd supports and observes the environmental policy as below.
Environmental Management
LS Industrial Systems considers the environmental preservation as the preferential management subject and every staff of LS Industrial Systems use the reasonable endeavors for the pleasurably environmental preservation of the earth.
About Disposal
LS Industrial Systems PLC unit is designed to protect the environment. For the disposal, separate aluminum, iron and synthetic resin (cover) from the product as they are reusable.
LS values every single customers. Quality and service come first at LSIS. Always at your service, standing for our customers.
http://eng.lsis.biz
10310000736
HEAD OFFICE LS tower, Hogye-dong, Dongan-gu, Anyang-si, Gyeonggi-do 1026-6, Korea http://eng.lsis.biz Tel : (82-2)2034-4870/Fax : 82-2-2034-4648 e-mail : [email protected] LS Industrial Systems Tokyo Office _ Tokyo, Japan Address: 16FL. Higashi-Kan. Akasaka Twin Tower 17-22, Akasaka.Monato-ku Tokyo 107-8470. Japan Tel : 81-3-3582-9128/Fax : 81-3-3582-2667 e-mail : [email protected] LS Industrial Systems(ME) FZE _ Dubai, U.A.E. Address : Jafza View Tower Lob 19, Room 205 Along Sheikh Zayed Road Jebel Aali Free Zone Dubai, United Arab Emirates Tel : 971-4-886-5360/Fax : 971-4-886-5361 e-mail : [email protected] LS Industrial Systems Shanghai Office _ Shanghai, China Address : Room E-G. 12FL Hiamin Empire Plaza. No.726. West. Yan'an Road Shanghai 200050. P.R. China e-mail : [email protected] Tel : 86-21-5237-9977(609)/Fax : 89-21-5237-7189 LS Industrial Systems Beijing Office _ Beijing, China Address : B-Tower 17FL. Beijing Global Trade Center B/D. No. 36. East BeisanHuan-Road. DongCheng-District. Beijing 100013. P.R. China Tel : 86-10-5825-6027(666)/Fax : 86-10-5825-6028 e-mail : [email protected] LS Industrial Systems Guangzhou Office _ Guangzhou, China Address : Room 1403.14FL. New Poly Tower. 2 Zhongshan Liu Road.Guangzhou.P.R China Tel : 86-20-8328-6754/Fax : 86-20-8326-6287 e-mail : [email protected] LS Industrial Systems Chengdu Office _ Chengdu, China Address : 12FL. Guodong Buiding. No.52 Jindun Road Chengdu.610041. P.R. China Tel : 86-28-8612-9151(9226)/Fax : 86-28-8612-9236 e-mail : [email protected] LS Industrial Systems Qingdao Office _ Qingdao, China Address : YinHe Bldg. 402 Room No. 2P Shandong Road, Qingdao-City,Shandong-province 266071, P.R. China Tel : 86-532-8501-6068/Fax : 86-532-8501-6057 e-mail : [email protected] LS Industrial Systems Europe B.V. , Netherlands Address : 1st. Floor, Tupolevlaan 48, 1119NZ, Schiphol-Rijk, The Netherlands Tel : +31 (0)20 654 1420/Fax : +31 (0)20 654 1429 e-mail : [email protected] Wuxi LS Industrial Systems Co., Ltd _ Wuxi, China Address : 102-A. National High & New Tech Industrial Development Area. Wuxi. Jiangsu. 214028. P.R. China Tel : 86-510-8534-6666/Fax : 86-510-8534-4078 e-mail : [email protected] Dalian LS Industrial Systems Co., Ltd. _ Dalian, China Address : No. 15. Liaohexi 3-Road. Economic and Technical Development zone. Dalian 116600. China Tel : 86-411-273-7777/Fax : 86-411-8730-7560 e-mail : [email protected]
LS Industrial Systems constantly endeavors to improve its product so that information in this manual is subject to change without notice. LS Industrial Systems Co., Ltd 2010 All Rights Reserved.
2010. 3