Data transfer via communication ports
769
Part III FP Instructions
ST
When programming with structured text, enter the following:
bBool1 := sys_bPulse1s;
if (bWrite1 and sys_bIsComPort1F145F146NotActive) then
F145_WRITE_DATA(Port := SYS_COM1_PORT,
SlaveAddress := 2,
MasterData := bBool1,
SlaveData => Slave2_g_bR15);
bRead1 := true;
bWrite1 := false;
end_if;