Omron PRT1-SCU11 Operation Manual page 70

Profibus-dp gateway to host link/compoway-f
Hide thumbs Also See for PRT1-SCU11:
Table of Contents

Advertisement

Function Block Programming
Name
ENO
ENO
Result of execu-
ResponseCode
tion of the com-
mand
Data read from
DataRead
the TC
Busy flag
BUSY
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-3 Free communication blocks ). The table below lists the specifics of this function block.
Item
Basic function
Writes data to a Temperature Controller's variable area.
Symbol
Start Trigger
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
• 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
Variable name
Data
type
BOOL
WORD
DWORD
BOOL
Busy Flag
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
Timechart
Start Trigger
ON
OFF
Busy Flag (BUSY)
ON
OFF
be processed.
Default Range
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-3 Free communica-
tion blocks for more information.
Data read from the TC.
(See Note)
Automatically turns OFF when processing is
completed.
Description
(BOOL)
EN
(UINT)
StratWordOutput
ResponseCode
(UINT)
StartWordInput
(UINT)
UnitNo
(UINT)
VarType
(UINT)
WriteStartAddress
(DWORD)
DataWrite
FB execution completed.
At normal end: Sending data has been completed.
Appendix B
Description
(BOOL)
ENO
(WORD)
Response code from TC
(BOOL)
Busy flag
Busy
63

Advertisement

Table of Contents
loading

Table of Contents