3
Chapter 7 XGT Dedicated C ommunication
7.1 Summary of Protocol ----------------------------------------------------------------------------------------------------------------------------------- 7-1
7.1.1 Summary ---------------------------------------------------------------------------------------------------------------------------------------- 7-1
7.2 Frame Structure ----------------------------------------------------------------------------------------------------------------------------------------- 7-2
7.2.1 Frame structure --------------------------------------------------------------------------------------------------------------------------------- 7-2
7.2.2 Instruction list ----------------------------------------------------------------------------------------------------------------------------- 7-4
7.2.3 Writing the single direct variable (W(w)SS)---------------------------------------------------------------------------------------------- 7-6
7.2.4 Reading single direct variable (R(r)SS) -------------------------------------------------------------------------------------------------- 7-8
7.2.5 Writing the direct variable continuously (W(w)SB)---------------------------------------------------------------------------------- 7-11
7.2.6 Reading direct variable continuously (R(r)SB) --------------------------------------------------------------------------------------- 7-13
7.2.7 Registration and execution of monitor variable
-------------------------------------------------------------------------------------- 7-15
7.2.8 Error code of XGT communication ------------------------------------------------------------------------------------------------------ 7-18
7.3 XGT Communication Function -------------------------------------------------------------------------------------------------------------------- 7-19
7.3.1 General ------------------------------------------------------------------------------------------------------------------------------------------ 7-19
7.3.2 Parameter setting when PLC acts as XGT server --------------------------------------------------------------------------------- 7-19
7.3.3 Parameter setting in case of XGT client
-------------------------------------------------------------------------------------- 7-22
7.3.4 Frame monitor ----------------------------------------------------------------------------------------------------------------------------- 7-29
7.3.5 Example of parameter setting ------------------------------------------------------------------------------------------------------------ 7-30
7.4 Remote connection
----------------------------------------------------------------------------------------------------------------------------------- 7-31
7.4.1
Summary of remote connection --------------------------------------------------------------------------------------------------------- 7-31
7.4.2 Limit of remote connection between Cnet I/F modules --------------------------------------------------------------------------- 7-31
7.4.3 Remote 1 co nnection ----------------------------------------------------------------------------------------------------------------------- 7-32
7.4.4 Remote 2 co nnection ----------------------------------------------------------------------------------------------------------------------- 7-33
7.5 Modem Communication ----------------------------------------------------------------------------------------------------------------------------- 7-35
7.5.1 Summary ---------------------------------------------------------------------------------------------------------------------------- 7-35
7.5.2 Remote connection through modem --------------------------------------------------------------------------------------------------- 7-35
7.5.3 Communication procedure between PLC and dial up modem ---------------------------------------------------------------- 7-39
7.6 Communication command ------------------------------------------------------------------------------------------------------------------------- 7-40
7.6.1 XGK comm and ------------------------------------------------------------------------------------------------------------------------------- 7-40
7.6.2 XGI command --------------------------------------------------------------------------------------------------------------------------------- 7-45
Chapter 8 Modbus Communication
8.1 General ----------------------------------------------------------------------------------------------------------------------------------------------------- 8-1
8.1.1 Procedure of Modbus communication ------------------------------------------------------------------------------------------------- 8-1
8.2 Modbus Protocol ---------------------------------------------------------------------------------------------------------------------------------------- 8-1
8.2.1 Kind of modbus protocol ---------------------------------------------------------------------------------------------------------------- 8-1
8.2.2 Structure of modbus protocol --------------------------------------------------------------------------------------------------------------- 8-2
8.3 Structure of Frame -------------------------------------------------------------------------------------------------------------------------------------- 8-3
8.3.1 S tructure of frame in the ASCII mode --------------------------------------------------------------------------------------------------- 8-3
8.3.2 Frame structure in the RTU mode ------------------------------------------------------------------------------------------------------- 8-3
8.3.3 Data and expr ession of a ddress ------------------------------------------------------------------------------------------------------- 8-4
8.3.4 Reading data of bit type at the b it output (01) ------------------------------------------------------------------------------------ 8-4
8.3.5 Read Input Status (02) ----------------------------------------------------------------------------------------------------------------------- 8-6
8.3.6 Read Holding Registers (03) -------------------------------------------------------------------------------------------------------------- 8-7
8.3.7 Read Input Registers (04) ------------------------------------------------------------------------------------------------------------------ 8-8
8.3.8 Force Single Coil (05) ------------------------------------------------------------------------------------------------------------------------ 8-9
8.3.9 Preset Single Register (0 6) ---------------------------------------------------------------------------------------------------------------8-10
8.3.10 Force Multiple C oils (0F) ---------------------------------------------------------------------------------------------------------------- 8-11
8.3.11 Preset Multiple Registers (10) ---------------------------------------------------------------------------------------------------------- 8-13
8.4 Modbus Server ----------------------------------------------------------------------------------------------------------------------------------------- 8-15
8.4.1 Setting when CPU is XGK series and Cnet acts as ASCII server
----------------------------------------------------------- 8-15
8.4.2 Setting when CPU is XGI series and Cnet acts as ASCII server ------------------------------------------------------------ 8-18
8.4.3 Setting when CPU is XGK series and Cnet acts as Modbus RTU server------------------------------------------------- 8-21
8.4.4 Setting when CPU is XGI series and Cnet acts as Modbus RTU server ------------------------------------------------- 8-24