Panasonic FP Series Programming Manual page 773

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data transfer via communication ports
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
The system variable sys_bPulse1s is copied to bBool1 and Bool16_OverlappingDut_1.b0. If
bWrite1 and sys_bIsComPort1F145F146NotActive are set to TRUE, bBool1 is written to the
output Y38 of slave 2 via Bool16_OverlappingDut_1.b0.
LD
ST
When programming with structured text, enter the following:
bBool1
:= sys_bPulse1s;
Bool16_OverlappingDut_1.b0
if
(bWrite1
F145_WRITE_DATA_TYPE_OFFS(Port
Bool16_OverlappingDut_1.w0,
16#8800);
bRead1
bWrite1
end_if;
772
:= bBool1;
and
sys_bIsComPort1F145F146NotActive)
:= true;
:= false;
then
:= SYS_COM1_PORT,
SlaveAddress
MasterWordData
SlaveWordAddressType
SlaveWordAddressOffs
NumberOfWords_BitsInWords
:= 2,
:=
:= WY0,
:= 3,
:=

Advertisement

Table of Contents
loading

Table of Contents