_E5xxDRT400_WriteVariable.pdf

(210 KB) Pobierz
タイトル
_E5xxDRT400_WriteVariable (1/3)
E5xxDRT
-400
Write Variable Area: _E5xxDRT400_WriteVariable
Basic
function
Writes one element to the specified variable area of a Controller on DeviceNet.
Symbol
Start trigger
_E5xxDRT400_WriteVariable
(BOOL)
EN
(BOOL)
ENO
Busy Flag
Master Unit No.
(INT)
MasterUnitNo
(BOOL)
BUSY
Busy Flag
(INT)
NodeNo
(BOOL)
OK
Slave node address
Normal end
(INT)
TCNo
(BOOL)
NG
Controller unit No.
Error end
(W ORD)
VariableType
(W ORD)
Address
(DINT)
Data
Variable type
W rite address
W rite data
File name
Lib\FBL\omronlib\TemperatureController\E5 R\Dnet\_E5xxDRT400_WriteVariable10.cxf
Lib\FBL\omronlib\TemperatureController\E5ZN\Dnet\_E5xxDRT400_WriteVariable10.cxf
Applicable
models
Applicable Master
Units
CS1W-DRM21(-V1) and CJ1W-DRM21
Applicable Slave Units E5AR-DRT/E5ER-DRT
E5ZN-DRT
Conditions
for usage
Settings
PLC Setup: Shared Settings for Communications Instructions in FBs
DeviceNet Response Timeout Time (default: 2 s) 10 s recommended
Number of retries (default: 0)
Shared Resources
Communications ports (internal logical ports)
Other
Communications must be within one network and cannot cross to another network.
Function
description
When the start trigger turns ON, one element, a present value or set value, is written to the specified Variable
Type and Write Address in the Controller on the DeviceNet specified by the Master unit No., Slave node
address, and Controller unit No.
Refer to the manual for the Controller being used for details on variable types and read addresses. (See
Related manuals .)
FB
precautions
The FB is processed over multiple cycles. The BUSY output variable can be used to check whether the
FB is being processed.
OK or NG will be turned ON for one cycle only after processing is completed. Use these flags to detect
the end of FB processing.
Timechart
Start Trigger
ON
OFF
Busy Flag (BUSY)
ON
OFF
Normal end (OK) or
Error end (NG)
ON
OFF
FB execution completed.
EN input
condition
Connect EN to an OR between an upwardly differentiated condition for the start trigger and the BUSY output
from the FB.
Restrictions
Input
variables
Always use an upwardly differentiated condition for EN.
The applicable ranges for input variables depend on the Controller being used. Set values that are
appropriate for the Controller.
Output
variables
This FB requires multiple cycles to process. Always connect an OR including the BUSY output variable
to the EN input variable to ensure that the FB is processed to completion (see Symbol ).
Do not turn the BUSY output variable ON or OFF outside the FB.
697776624.004.png 697776624.005.png 697776624.006.png 697776624.007.png
_E5xxDRT400_WriteVariable (2/3)
Application
example
When bit A turns ON, the input offset value 1 is set to 99.99 for the Controller 1 in the following configuration.
CPU
DRM
Master unit No.: 1
Slave address: 15
Slave
E5ZN
-DRT
E5ZN
No.0
E5ZN
No.1
Input shift 1 is set for Controller 1.
Variable type: C7
Address: 0016
Start trigger
_E5xxDRT400_WriteVariable
(BOOL)
EN
(BOOL)
ENO
Busy Flag
Master Unit No.
&1
(INT)
MasterUnitNo
(BOOL)
BUSY
Busy Flag
Bit B
Normal end
Bit C
Error end
Bit D
Slave node address
&15
(INT)
NodeNo
(BOOL)
OK
Controller unit No.
&1
(INT)
TCNo
(BOOL)
NG
Variable type
#C7
(W ORD)
VariableType
(W ORD)
Address
(DINT)
Data
Write address
#0016
Write data
-9999
Bit C
Processing after normal end
Related
manuals
E5AR/E5ER-DRT
E5AR/E5ER Digital Controller DeviceNet Communications User’s Manual (H124)
5-2 Sending CompoWay/F Commands to the Digital Controller
E5AR/E5ER Digital Controller User’s Manual (Z182)
6.6 Writing Variable Areas
Appendix Setting List
E5ZN-DRT
DeviceNet Communications Unit for E5ZN Temperature Controllers Operation Manual (H119)
6-2 Sending CompoWay/F Commands to a Temperature Controller
E5ZN Temperature Controller Operation Manual (H113)
5.6 Writing Variable Areas and 5.10 Variable Area Map
697776624.001.png
_E5xxDRT400_WriteVariable (3/3)
Variable Tables
Input Variables
Name
Variable name
Data type Default Range
Description
EN
EN
BOOL
1 (ON): FB started.
0 (OFF): FB not started.
Master Unit No.
MasterUnitNo
INT
&0
&0 to &15
#0 to #F
Specify the unit number of the DeviceNet
Unit.
Slave node
address
NodeNo
INT
&0
&0 to &63 Specify the node address of the slave.
Controller unit No. TCNo
INT
&0
At right.
E5AR-DRT/E5ER-DRT
Set the same value as for the slave node
address.
E5ZN-DRT
Specify the unit number of the Controller
between &0 and &15 (#0 to #F).
Variable type
VariableType
WORD
#0
Specify the variable type.
Refer to the Related Manuals for details on
variable types.
Write address
Address
WORD
#0
Specify the address to write.
Refer to the Related Manuals for details on
addresses.
Write data
Data
DINT
&0
Specify the data to write.
Output Variables
Name
Variable name
Data type Range
Description
ENO
(May be omitted.)
ENO
BOOL
1 (ON): FB processed normally.
0 (OFF): FB not processed or ended in an error.
Busy Flag
BUSY
BOOL
Automatically turns OFF when processing is
completed.
Normal end
OK
BOOL
Turns ON for one cycle when processing ends
normally.
Error end
NG
BOOL
Turns ON for one cycle when processing ends in an
error.
Internal Variables
Internal variables are not output from the FB.
If the NG Flag from the FB turns ON, the following internal variables can be monitored to obtain information on the error.
Name
Variable name
Data type Range
Description
FINS error code
FINS_ErrorCode
WORD
The FINS error code is output. A code of #0000 is
output for a normal end. Refer to the Related
Manuals for details on the error codes.
Explicit message
error code
Explicit_ErrorCode
WORD
Outputs the explicit message error code. A code of
#0000 is output for a normal end. Refer to the
Related Manuals for details on the error codes.
CompoWay/F
error code
CompowayF_ErrorCode WORD
Outputs the CompoWay/F error code. A code of
#0000 is output for a normal end. See below for
details on errors.
Error Code Details
Code
Contents
Meaning
0000
Normal end
1100
Variable setting error The value of the input variable is outside of specifications.
2203
Operation error Writing via communications is prohibited.
An attempt was made to write protect level setting data from outside of protect
level.
Autotuning is being executed.
Calibration is being executed.
Unit error, unit change, display unit error, or internal non-volatile memory error
Version History
Version
Date
Contents
1.00
2004.6.
Original production
697776624.002.png 697776624.003.png
Zgłoś jeśli naruszono regulamin