Chapter 9 Modbus Communication -------------------------------------------------------------------- 9-1 ~ 9-15
9.1 General ------------------------------------------------------------------------------------------------ 9-1
9.2 Modbus Protocol -------------------------------------------------------------------------------------- 9-1
9.2.1 Kind of modbus protocol------------------------------------------------------------------- 9-1
9.2.2 Structure of modbus protocol------------------------------------------------------------------ 9-1
9.3 Structure of Frame --------------------------------------------------------------------------------------- 9-3
9.3.1 Structure of Frame in the ASCII mode -------------------------------------------------------- 9-3
9.3.2 Frame structure in the RTU mode ----------------------------------------------------- 9-3
9.3.3 Data and expression of address -------------------------------------------------------- 9-4
9.4 Modbus Protocol------------------------------------------------------------------------------------ 9-6
9.4.1 Reading data of bit type at the bit output (01) ------------------------------------------------ 9-6
9.4.2 Read Input Status (02) ----------------------------------------------------------------------- 9-7
9.4.3 Read Holding Registers (03)---------------------------------------------------------------------- 9-8
9.4.4 Read Input Registers (04) ------------------------------------------------------------------------- 9-9
9.4.5 Force Single Coil (05) ----------------------------------------------------------------------------- 9-10
9.4.6 Preset Single Register (06)----------------------------------------------------------------------- 9-11
9.4.7 Force Multiple Coils (0F) ------------------------------------------------------------------------- 9-12
9.4.8 Preset Multiple Registers (10) ------------------------------------------------------------------ 9-14
Chapter 10 Example Program------------------------------------------------------------------------- 10-1 ~ 10-25
10.1 Setting of Cnet I/F module in the XG-PD ------------------------------------------ 10-1
10.1.1 In case of acting as server ------------------------------------------------- 10-1
10.1.2 In case of acting as P2P service (client) -------------------------------- 10-3
10.2 Dedicated Communication Example ------------------------------------------------------- 10-6
10.2.1 Settings of XGT server ---------------------------------------------------- 10-7
10.2.2 Settings of XGT client ---------------------------------------------------- 10-8
10.2.3 Checking the operation ------------------------------------------------------ 10-11
10.3 Modbus Communication Example ----------------------------------------------------- 10-12
10.3.1 Modbus RTU server setting ------------------------------------------------------------------ 10-13
10.3.2 Setting of Modbus RTU client ----------------------------------------------------------- 10-15
10.4 User defined Communication Example ------------------------------------------------------------- 10-20
10.4.1 User defined communication example system configuration ------------------------ 10-20
10.4.2 User definition communication frame structure ----------------------------------------- 10-21
10.4.3 User definition communication parameter setting -------------------------------------- 10-22