8 Application Instructions API 100-149 API 113 Operands: S 1 : IP address, communication port number, and read/write mode S 2 : Device address D : Source/Destination data register n : Data length (Unit: Word; Range: K1~K96) Explanations: 1. See the specifications of each model for their range of use. 2. Flags: D1395 and D1396 3. S 1 : IP address, communication port number, and read/write mode The operand S 1 occupies five consecutive data registers. The functions are as follows. IP address: Two data registers are occupied, that is, S 1 +0 and S 1 +1. IP address IP3.IP2.IP1.IP0 192.168.0.2 If S 1 is D100, the values in D100 and D101 are H’0002 and H’C0A8 respectively. S 1 +2:
Communication port number The communication port number of the Ethernet communication card installed in DVP-EH3 is K108. The communication ports on the left-side Ethernet modules connected to a CPU module are numbered according to their distances from the CPU module. The numbers start from K100 to K107. S 1 +3: Station address of a slave S 1 +4: Read/Write mode The definition is the same as Modbus. The function codes supported are H’03, H’04, H’06, and H’10. 4. S 2 : Device address The definition is the same as Modbus. 5. The operand D specifies a source data register or a destination data register.
If the operand D specifies D10, and two pieces of communication data is read by means of the function code H’03, the communication data will be stored in D10 and D11. DVP-PLC Application Manual 8-24 Mnemonic Operands Function ETHRW Ethernet communication Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY K nM KnS T C D E F ETHRW: 9 steps S 1 * S 2 * * * D * n * * * PULSE 16-bit 32-bit SS SA SX SC EH S EH3 V SV2 ES EX SS SA SX SC EH SV EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SV2 D100 (S +0) 1 D101 (S +1) 1 High Low High Low IP1 IP0 IP3 IP2 0 2 192 168 H’0002 H’C0A8