74
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
put
v
a
ri
ab
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 device
UnitNo
UINT
0
#0 - #63
(0-99)
Unit number of device.
Variable Type
VarType
UINT
0
Variable type in device.
Write Start
address from
device
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
a
b
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-4 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
Summary of Contents for PROFIBUS DP GATEWAY
Page 1: ...OPERATION MANUAL PROFIBUS DP Gateway to Host Link Compoway F PRT1 SCU11 Cat No W01E EN 02 ...
Page 2: ...PRT1 SCU11 PROFIBUS DP Gateway Operation Manual Revised September 19 2005 ...
Page 3: ...iv ...
Page 15: ......
Page 31: ......
Page 71: ......
Page 77: ......
Page 81: ......