6 F 3 B 0 3 6 2

c.UDP send request

This program issues a UDP send request for socket number 2 on the Ethernet Port.

 

This ladder program is executed by turning on the A contact on the R0622.

 

 

Parameters:

12544: 3100H, 00050: 0032H

 

 

 

 

 

0341995909: 14627185H

 

 

 

Transmission destination IP address: 133.113.98.20

 

 

 

Transmission destination object socket UDP port number: 3000

 

 

Transmission data word count: 1000

 

 

 

Transmission data storage registers: D1000 and above

 

 

 

 

 

/* UDP send request: executed when R0622 is set on. */

 

 

 

 

R0622

 

 

 

1- -+[12544

MOV RW000][00050 MOV RW001]----------------------------

/*

Module designation, CMD number setup

*/

 

 

 

 

+[00002

MOV RW002]---------------------------------------------

/*

Socket identifier setup */

 

 

 

 

 

+[0341995909 DMOV RW004RW003][03000 MOV RW005]----------------

/*

Remote port IP address, port number setup */

 

 

 

 

+[01000

MOV RW006]---------------------------------------------

/*

Transmission data word count setup

*/

 

 

 

 

+[00004

MOV RW007][01000 MOV RW008]----------------------------

/*

Transmission data storage register type, storage register

number setup

*/

 

 

 

 

 

+[RW000

SEND RW010][RST R0622]---------------------------------

 

 

/* Turn R0622 off after request setup and completion. */

 

 

 

 

 

 

 

 

 

 

114

Page 115
Image 115
Toshiba T2N instruction manual UDP send request