Panasonic FP Series Programming Manual page 1129

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Analog unit instructions
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
If bEnable is set to TRUE, the function block converts the digital data (-2000–+2000) of the analog
unit FP0-A04V with current output into analog data at the corresponding output channels
(-10–+10V).
LD
ST
When programming with structured text, enter the following:
IF
bEnable
fbInstance4(iIOWordOffset
END_IF;
1128
THEN
:= iIOOffsetFP0,
iOutChannel0
iOutChannel1
iOutChannel2
iOutChannel3
bPowerIsOn
=> bOutPower2,
bErrorChannel0
bErrorChannel1
bErrorChannel2
bErrorChannel3
:= iOut1,
:= iOut2,
:= iOut3,
:= iOut4,
=> bOutError1,
=> bOutError2,
=> bOutError3,
=> bOutError4);

Advertisement

Table of Contents
loading

Table of Contents