Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

3. Instruction Set 3. The operand D specifies a source data register or a destination data register. For example, D specifies D10 and set the function code to H’03; when it reads 2 length of data, the data will be stored in D10 and D11. 4. When setting the function code to H’05, 0 in the operand D means to Reset bit and for other values in the operand D means to Set bit. 5. n : Length of data (Unit: word, the setting range: K1~K96) (Unit: bit, the setting range: K1~K256) If n exceeds the range, it will be taken as the maximum value or the minimum value. 6. Whenever the instruction is executed, the communication command is sent.

Users do not need to enable a special flag to send the communication command. 7. The instruction can be used several times. However, if an ETHRW instruction specifies a module, other ETHRW instructions can not send communication commands to the module. The next communication command can not be sent until the reception is complete or the module replies that an error occurs. 8. If a communication command is being received, the reception stops when the execution of the instruction stops. Besides, the flag related to the command’s having being received and the error flag are not ON. 9. The communication timeout is stored in D1349. The default timeout is 3000 milliseconds.

The range of digital values is 1~32767. If the communication timeout exceeds the range, it will be taken as 3000 milliseconds. 10. The values of bit0~bit8 in D1395 indicate which communication port has received a command. For example, if the communication port built in DVP-SE has received a command, “BLD D1395 K8” is satisfied. 11. The values of bit0~bit8 in D1396 indicate which module For example, if a reception error 12. When the instruction is executed, user can not use the online editing function. Otherwise, the occur in the first left-side DVP-EN01, “BLD D1396 K0” is satisfied. data received will not be stored correctly. 13.

SA2/SX2 v2.62, SE/ES2-E v1.00 and later versions support the function codes H’03, H’04, H’06, and H’10. 14. SE v1.86, ES2-E v1.00 and later versions support the function codes H’01, H’02, H’05, and H’0F. Program Example 1: (The instruction is sent and received through the Ethernet port built in DVP-SE.) The IP address stored in D100 and D101 is 192.168.0.2, the communication port number stored in D102 is K108, the station address stored in D103 is K1, and the function code stored in D104 is H’03. The device address is H’1000, and two pieces of data are read. When M0 is ON, ETHRW is executed. After the reception of the communication command is complete, bit8 in D1394 is ON.

The data received is stored in D10 and D11. 3-317