Mitsubishi MELSEC-L series Programming Manual page 130

Hide thumbs Also See for MELSEC-L series:
Table of Contents

Advertisement

G_PRR
[ST]
PLS(X50, Var_Flag_Inst);
IF((Var_Flag_Inst=TRUE) & (X9E=TRUE) & (X9F=FALSE))THEN
END_IF;
IF(Var_Flag_Inst=TRUE)THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
5.2 Serial Communication and Modem Interface Instruction
5-84
5.2.9 PRR instruction
MOV(TRUE, 4, Var_TransData[0]);
MOV(TRUE, H1234, Var_TransData[1]);
MOV(TRUE, H56AB, Var_TransData[2]);
TO(TRUE, H400, Var_TransData[0], 3);
MOV(TRUE, H3F2, Var_Frame[0]);
MOV(TRUE, H3F3, Var_Frame[1]);
MOV(TRUE, H8001,Var_Frame[2]);
MOV(TRUE, H8000,Var_Frame[3]);
MOV(TRUE, H41B, Var_Frame[4]);
MOV(TRUE,
0, Var_Frame[5]);
TO(TRUE, HBA, Var_Frame[0], 6);
MOV(TRUE, 1, Var_ControlData[0]);
MOV(TRUE, 0, Var_ControlData[1]);
MOV(TRUE, H0, Var_ControlData[2]);
MOV(TRUE, H1, Var_ControlData[3]);
MOV(TRUE, H5, Var_ControlData[4]);
GP_PRR(TRUE, H08, Var_ControlData, Var_Result);
IF(Var_Result[1]=FALSE)THEN
SET(TRUE, Var_Flag_Normal);
ELSE
SET(TRUE, Var_Flag_Error);
END_IF;
(* Transmission instruction pulse *)
(* Sets number of send data *)
(* Sets desired send data *)
(* Sets send data to buffer memory *)
(* Sets user frame 0 *)
(* Sets user frame 1 *)
(* Sets user frame 2 *)
(* Sets user frame 3 *)
(* Sets user frame 4 *)
(* Sets user frame 5 *)
(* Sets user frames to buffer memory *)
(* Sets transmission channel to 1 *)
(* Clears transmission result *)
(* Sets CR/LF to 'CR/LF not added' *)
(* Sets transmission pointer *)
(* Sets number of send data *)
(* Performs user frame transmission *)
(* Execution finished *)
(* Normal completion *)
(* Turns normal completion flag ON *)
(* Error completion *)
(* Turns error completion flag ON *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents