73
Function Block Programming
Appendix B
Note The function block ensures that Double Word sized data read from the Temperature Controller is cor-
rectly formatted, to match the DWORD data type as defined in the PLC.
B-5
Write Function Block
The Write Function Block facilitates the transmission of a WRITE command to a specific temperature Control-
ler (refer to section
3-3-4 Free Communication Blocks
). The table below lists the specifics of this function block.
Ou
tp
u
t 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.
Data read from
the device
DataRead
DWORD
Data read from the device.
(See Note)
Busy flag
BUSY
BOOL
Automatically turns OFF when processing is
completed.
Item
Description
Basic function
Writes data to a Temperature Controller’s variable area.
Symbol
File name
PRT1_SCU11_Write_Data.cxf
Function description
Sends a Write Data command to the CS1/CJ1W-PRM21 PROFIBUS Master I/O addresses allo-
cated to the targeted Temperature Controller, specified by the Unit No. The data to be written and
the location to write is to are specified by the DataWrite and the WordStartAddress variables.
Precautions
EN Input condition
Connect EN to an OR between an upwardly differentiated condition for the start trigger and the
BUSY output from the Function Block.
Restrictions on Input
variables
• Always use an upwardly differentiated condition for the EN.
• If the Input variables are out of range, the ENO flag will turn OFF and the Function Block will not
be processed.
Name
Variable name
Data
type
Default
Range
Description
Start Word
Profibus output data
Start Word
Profibus input data
Unit No of TC
Variable Type
Write Start address from TC
Data to be written
Response code from TC
Busy flag
Start Trigger
(BOOL)
EN
(BOOL)
ENO
(UINT)
StratWordOutput
(WORD)
ResponseCode
(UINT)
StartWordInput
(BOOL)
Busy
(UINT)
UnitNo
(UINT)
VarType
(UINT)
WriteStartAddress
(DWORD)
DataWrite
Busy Flag
Timechart
Start Trigger
ON
OFF
Busy Flag (BUSY)
ON
OFF
FB execution completed.
At normal end: Sending data has been completed.
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: ......