![background image](http://html1.mh-extra.com/html/omron/sysmac-nx-series/sysmac-nx-series_user-manual_742270251.webp)
A-3 Programming Examples for Analog
Input Data Collection with the Library
The High-speed Analog Input Units read each analog input value that has been sampled in the task
periods of the assigned periodic task as more than one I/O data item.
DeviceVariableToArray_100 (Join Device Output Data), a library in the High-speed Analog Inspection
Library of Sysmac Library, enables you to join more than one I/O data item into one array variable.
This section shows programming examples that use this library. The system configuration here as-
sumes that the High-speed Analog Input Unit is connected to a CPU Unit. In the programming exam-
ple where the Unit is connected to an NX-ECC203 EtherCAT Coupler Unit, only differences from the
case where it is connected to the CPU Unit are described. Refer to
A-3-3 Connection to the Communi-
on page A - 17 for details.
A-3-1
System Configuration
The system configuration is given below.
Output device
(a)
(b) (c)
Letter
Description
Model
Description
(a)
NX-series CPU Unit
NX102-
££££
---
(b)
Additional I/O Power Supply Unit
NX-PF0730
NX Unit number: 1
(c)
High-speed Analog Input Unit
NX-HAD401
•
NX Unit number: 2
•
Channel used: Ch1
A-3-2
Programming Example
The following shows a basic programing example for collecting analog input data by using DeviceVar-
iableToArray_100 (Join Device Output Data), a library in the High-speed Analog Inspection Library of
Sysmac Library. Refer to the
Sysmac Library User’s Manual for High-speed Analog Inspection Library
(Cat. No. W607)
for details on the High-speed Analog Inspection Library of Sysmac Library.
Appendices
A - 13
NX-series Analog I/O Units User’s Manual for High-speed Analog Input Units (W592)
A-3 Programming Examples for Analog In-
put Data Collection with the Library
A
A-3-1 System Configuration