Download User`s Manual
Transcript
CHAPTER 7 GMWIN FUNCTION BLOCK 7.3.5 UDP_RCV station using TCP/IP GMR GM1/2 GM3 Product Used to receive data sent from the destination n Applicability Function Block n n GM4 GM6 n n GM7 Description Input REQ: When it is at rising edge (0→1), the Function Block is executed. NET_NO: The slot number (0 to 7), in which the communication module of the local station is installed, and where the Function Block is transferred. CH_NO: Channel edited in E_CONN Function Block. FRAME: Frame to be received (distinguished with capital/small letters). It must be downloaded in the FEnet module after editing in Frame Editor. ARR_CNT: The number of data to be received. Number of data type equivalent to ‘DATA. DATA: An area saving RX data. Uses ‘ARRAY’. Output NDR: It turns ‘ON’ during normal service. ERR: It turns ‘ON’ during an error occurrence after the Function Block is executed. STATUS: It is a detailed code value of an error. SIP_ADDR: IP address of the station that sent data. S_PORT: Port of the station that sent data. RCV-LEN: A number of received data. This Function Block is used to receive data of the destination station using UDP/IP. UDP/IP communication does not establish a channel, so it can receive any data that has sent from station to an open port. Therefore, it is possible in UDP_RCV Function Block, different from TCV_RCV, to know which station (SIP_ADDR) sends data to which port number (S_PORT). The operation of this Function Block is the same with TCP_RCV. However, the TCP_RCV Function Block displays the information of the destination station in the output. Except this difference, every operation is the same with each other, it is also identical for both to use the frame name such as ‘_UDATA_RCV’ without a special specification of RX data form. Therefore, this Function Block’s operation saves the received data in the specified variable in ‘DATA’ when the received data from the established station is identical to the frame defined as ‘FRAME’. (It should be defined as an appropriate name in ‘Frame Editor’, and downloaded in the FEnet module.) 7-16