Download MELSEC-L CPU Module User`s Manual (Built
Transcript
CHAPTER 6 SOCKET COMMUNICATION FUNCTION 6.4.1 Establishing a connection (SP.SOCOPEN) Command SP.SOCOPEN Internal device Setting data Bit S1 - S2 - Word U0 S1 J\ R, ZR Bit U\G Word D S2 Zn Constant K, H Others *1 *1 D *1 SP.SOCOPEN - - *1 - - - *1 - - - 6 File registers set for each local device or program cannot be used. (1) Setting data Setting data Description U0 Dummy S1 Connection number (Setting range: 1 to 16) S2 Start number of the device from which control data are stored Set by*2 Data type - Character string User BIN 16-bit User, system Device name System Bit Start number of the device which turns on for one scan upon completion of the instruction D *2 6.4 Socket Communication Function Instructions 6.4.1 Establishing a connection (SP.SOCOPEN) D +1 also turns on when failed. The "Set by" column indicates the following. User: The data must be set before executing the SP.SOCOPEN instruction. System: The CPU module stores the execution result of the SP.SOCOPEN instruction. 59