Download "user manual"
Transcript
9. Program 9.2. Communications sequence This section explains the communications sequence (protocol macro data) that can be used for the ExecPMCR instruction of this program. 9.2.1. Communications sequence No. A communications sequence (protocol macro data) that is registered in the Serial Communications Unit is identified by a communications sequence number. The Controller executes the corresponding command on the destination device by specifying a communications sequence number in the ExecPMCR instruction. This protocol macro data includes the following communications sequence. No. Command name 900 Reading Trigger 9.2.2. Description Issues the reading trigger for a bar code. ExecPMCR instruction input variables The ExecPMCR instruction input variables for communication sequence No.900 Reading Trigger are set as follows: Variable Port Name (data format) Destination port specification (_sPROT) UnitNo Unit number (_eUnitNo) PhysicPortNo Serial port number (USINT) SeqNo Communications sequence number (UINT) SrcDat[] (array) Send data array (WORD) DstDat[] (array) Receive data array (WORD) Data (Description) _eUnitNo#_CBU_No00 (Specifies the unit number for the Serial Communications Unit.) USINT#10#2 (Use serial port No.2.) UINT#10#900 (Specifies Reading Trigger.) WORD#16#0000 (The number of words of send data is 0.: Specifies that no parameter is required for the command.) (Receive data. Setting is unnecessary) 47