64
Function Block Programming
Appendix B
The table below lists the Input and Output variables for the Write function block.
Note
The function block ensures that Double Word sized data written to the Temperature Controller is cor-
rectly formatted.
Restrictions on Out-
put variables
• This function block requires multiple cycles to process. Always connect an OR including the
BUSY output variable to the EN input variable to ensure that the function block is processed to
completion (see Symbol)
• Do not turn the BUSY output variable ON or OFF outside the function block.
Application example
Response data is copied to channel 2 after Busy flag is OFF.
Name
Variable name
Data
type
Default
Range
Description
In
p
u
t v
a
ri
a
b
le
s
EN
EN
BOOL
1 (ON): Function block started
0 (OFF): Function block not started
Start Word
PROFIBUS Out-
put data
StartWordOutput
UINT
3000
Start Word of PROFIBUS Output data in
PROFIBUS Master Output data area
Start Word
PROFIBUS Input
data
StartWordInput
UINT
3010
Start Word of PROFIBUS Input data in
PROFIBUS Master Input data area
Unit No of TC
UnitNo
UINT
0
#0 - #63
(0-99)
Unit number of TC
Variable Type
VarType
UINT
0
Variable type in TC
Write Start
address from TC
WriteStartAddress
UINT
0
Start address of variable to which the data
must be written.
Data to be written DataWrite
DWORD 0
Specify the data to be written
O
u
tput
v
a
ri
ab
le
s
ENO
ENO
BOOL
1 (ON): Function block processed normally
0 (OFF): Function block not processed or
ended in an error
Result of execu-
tion of the com-
mand
ResponseCode
WORD
Outputs the error code when execution ended
in an error in the communications command
level. Refer to section
3-3-3 Free communica-
tion blocks for more information.
Busy flag
BUSY
BOOL
Automatically turns OFF when processing is
completed.
Item
Description
Start Word Profibus output data
&3200
Start Word Profibus input data
&3300
Unit No of TC
&1
Variable Type
#C1
Read Start address from TC
#0104
Data to be written
&99
Response code from TC
Channel 2
Busy flag
Bit B
Bit A
(BOOL)
EN
(BOOL)
ENO
(UINT)
StratWordOutput
(WORD)
ResponseCode
(UINT)
StartWordInput
(BOOL)
Busy
(UINT)
UnitNo
(UINT)
VarType
(UINT)
WriteStartAddress
(DWORD)
DataWrite
Bit B