Omron PROFIBUS DP GATEWAY Operation Manual page 87

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

Advertisement

Function Block Programming
Item
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
• Always use an upwardly differentiated condition for the EN.
variables
• If the Input variables are out of range, the ENO flag will turn OFF and the Function Block will not
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
The table below lists the Input and Output variables for the Read 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
Read Start
ReadStartAddress
address from
device
72
Timechart
Start Trigger
ON
OFF
Busy Flag (BUSY)
ON
OFF
be processed.
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
Variable name
Data
type
BOOL
UINT
UINT
UINT
UINT
UINT
Description
FB execution completed.
At normal end: Sending data has been completed.
(BOOL)
EN
(UINT)
StratWordOutput
&3200
(UINT)
StartWordInput
&3300
(UINT)
UnitNo
&1
(UINT)
VarType
#C0
(UINT)
ReadStartAddress
#0100
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
Specify the Read Start address.
Appendix B
(BOOL)
ENO
(WORD)
Response code from TC
ResponseCode
Channel 2
(DWORD)
Data read from TC
DataRead
Channel 2
(BOOL)
Busy flag
Busy
Bit B
Description

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prt1-scu11

Table of Contents