6.3. Communication Verification Example The example used in this document, is the case where a program is sent and received from the controller to the smart camera using a program in structured text (ST) language and Protocol Macro data. The controller and smart camera send and receive the message "Inspection trigger (Sequence No.900)". An Overview of the Sequence Operation ● Sequence Operation Overview ① Execute a protocol macro instruction (ExecPMCR instruction) specifying sequence No. 900 of protocol macro data in the ST language program. ② "Serial trigger" command of Sequence No.
900 is selected from Protocol Macro data and sent to the smart camera ③ Execute command with smart camera according to the data sent from the controller. ④ The result of the command executed by the smart camera is received by the controller and stored in the specified variable RS-232C Smart camera CPU Unit Serial Communications Unit 11 Controller Project file Program in ST language IF …. THEN ………. ELSE ………. END IF; _ ① Execute Protoco Command (Specify sequence No. Protocol Macro Data Sequence No.1 Sequence No.2 Sequence No.900 l Macro ② Seri (Seque 900) l Macro 900) al Trigger nce No.
900) Output RecvData _ Received Data Storage Area ③ Execute C d Send Data Receive Data ④ Receive command execution result and store in