Omron PROFIBUS DP GATEWAY Operation Manual page 89

Profibus-dp gateway to host link/compoway-f
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prt1-scu11

Table of Contents