5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
197
5
*1 For divisions of (1) and (2) in the program, (1) is necessary when the [Open settings] of GX Works2 is used and (2) is necessary when it
is not used.
[ST]
IF(SM400=TRUE)THEN (* Always ON *)
MOV(TRUE,U0\G20480,K4M0); (* Open completed signal/connection 1 open completion signal *)
MOV(TRUE,U0\G20482,K4M20); (* Open request signal/connection 1 open request signal *)
END_IF;
IF(Var_Flag_Inst=TRUE)THEN (* When instruction flag is ON*)
PLS(TRUE,Var_Flag_Exe); (* Turns execution flag ON *)
END_IF;
IF((Var_Flag_Exe=TRUE) AND (X19=TRUE) (* Execution flag/initialization normal completion signal *)
AND (M0=FALSE) AND (M20=FALSE))THEN (* Connection 1 open completion signal/connection 1 open request signal *)
ZP_OPEN(TRUE,"U0",1,D100,Var_Result); (* Opens connection *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
SET(TRUE, Var_Flag_Normal); (* Turns normal completion flag ON *)
END_IF;
IF(Var_Result[1]=TRUE)THEN (* Error completion *)
SET(TRUE, Var_Flag_Error); (* Turns error completion flag ON *)
END_IF;
END_IF;
(*Use GX Works2-[Open settings]*)
MOVP(TRUE,H0,D100);
(*Execution type*)
*1
(*Use D100-[control data]*)
MOVP(TRUE,H8000,D100);
(*Execution type*)
MOVP(TRUE,H0,D102);
(*Application setting*)
MOVP(TRUE,H1000,D103);
(*Host station port number*)
DMOVP(TRUE,H0A6155DF,D104);
(*Destination IP address*)
MOVP(TRUE,H2000,D106);
(*Destination port number*)
*1
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......