2-3. Usage Example of FB Component
FB “Read Present Unit ON Time”
FB Name
_Dnet204_GetONTime_PV
File Name
_Dnet204_GetONTime_PV10.cxf
Functional Overview Reads the present Unit ON time(conduction time)from slaves connected to DeviceNet.
Program Example
When contact A is set to ON, current value of the unit conducting period of the specified slave of
the node address 15 is read out and outputted to D0. As a result, &10 is stored in D0.
Variables Table
[INPUT] (Input Variables)
[OUTPUT] (Output Variables)
Specify the node address of the slave.
NodeNo
Slave node address
Specify the unit number of the DeviceNet Master Unit.
MasterUnitNo
Master Unit No.
1 (ON): FB started.
0 (OFF): FB not started.
EN
EN
Description
Variable name
Name
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.
ExplicitError
Explicit message
error code
(May be omitted.)
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.
FINSError
FINS error code
(May be omitted.)
The present Unit ON time is output (unit: 0.1 h).
For example, &20 would be output for 2 hours.
PV
Present Unit ON
Time
Turns ON for one cycle when processing ends in an
error.
NG
Error end
Turns ON for one cycle when processing ends normally.
OK
Normal end
0 (OFF): FB not processed or ended in an error.
BUSY
Busy Flag
1 (ON): FB processed normally.
ENO
ENO
(May be omitted.)
Description
Variable name
Name
2-2 DeviceNet Slave (DRT2 Series)
DRT2-
Busy Flag
Normal end
Error end
Present Unit ON Time
FINS error code
(May be omitted.)
Explicit message error code
(May be omitted.)
Master Unit No.
Slave node address
Start trigger
Busy Flag
↑
_Dnet204_GetONTime_PV
(BOOL)
EN
(BOOL)
ENO
(INT)
MasterUnitNo
(BOOL)
BUSY
(INT)
NodeNo
(BOOL)
OK
(BOOL)
NG
(DINT)
PVt
(W ORD)
FINSError
(W ORD)
ExplicitError
Содержание FB LIBRARY -
Страница 1: ......
Страница 14: ...2 1 Controller Link Unit CJ1W CLK21 V1...
Страница 23: ...2 2 DeviceNet Slave DRT2 Series DRT2...
Страница 31: ...2 3 Position Control Unit CJ1W NCF71...
Страница 42: ...2 4 Position Control Unit CJ1W NC113 133 213 233 413 433...
Страница 49: ...2 5 Position Control Unit CS1W NC113 133 213 233 413 433...
Страница 57: ...2 6 Inverter 3G3MV A2 AB A4 3G3RV A2 A4...
Страница 71: ...2 7 Servo Driver R88D WT WT H WT HL R7D AP H AP L...
Страница 84: ...2 8 RFID ID Sensor V600 H...
Страница 95: ...2 9 Vision Sensor F160 C10...
Страница 105: ...2 10 2D Code Reader V530 R2000 R160 R150V3...
Страница 118: ...2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N...
Страница 129: ...2 12 Temperature Controller E5ZN 2...
Страница 139: ...2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104...
Страница 148: ...Chapter 3 OMRON FB Library List Folder Configuration of The OMRON FB Library List of The OMRON FB Library...
Страница 162: ...Cat No R123 E01 01 Note Specifications subject to change without notice Printed in Japan Authorized Distributor...