- ページ 7
制御システム Addi-Data APCI-8001のPDF マニュアルをオンラインで閲覧またはダウンロードできます。Addi-Data APCI-8001 9 ページ。 Positioning and contouring control system, canbus interface
C
B
I
AN
US
NTERFACE
3.3 Resources for ML71 handling
Table 4: List of device numbers for ML71 handling
Dev.#
Name
Type
10000 ML71
integer
Measure
single
Value
short int
10001 ML71
integer r
Status
10013 ML71
datablock r
Measure
Data
Block
The resource 10013 can only be used to record measuring values via the scanner interface. However,
even with this resource, a read request must first be performed via the resource interface in order to
obtain a valid handle. This read request must be successfully called using the "rdOptionInt" function
(see "Universal Object Interface" manual, Section 2.1.2.1). The number of measuring value lines
already received via CanBus is returned in the "val" parameter. Using this value, it can be seen
whether the data transfer via CAN bus is ready.
3.4 The resource "ML71MeasureDataBlock"
There are two options for recording the measuring values received via CAN bus using the scanner
module. In the first instance, the resources "ML71MeasureValue" can be integrated in the scan record.
In this case, the most recently updated measuring value is read by the scanner. This option is
available when using CAN-Bus 1 and CAN-Bus 2 of the ML71.
When using CAN-Bus 1 of the ML71, it is also possible to use the resource "ML71MeasureDataBlock"
as the scan object. In this case, all the measuring values accumulated since the last scan time are
entered in a data block of a fixed size. It is, therefore, possible to record all measuring values without
any gaps.
The scanner is programmed in the same way as for scanning a position value, for example.
The special feature of this resource, however, is the layout of the data block recorded, which itself
represents a data structure (record). This data structure has the following layout:
Integer
Integer
number
status
integer
integer
lines
columns
Line 0: Integer or float
Measuring value 1
Line 1: Integer or float
Measuring value 1
....
Line n: Integer or float
Measuring value 1
(n = maximum 16)
Explanation
Measuring value of an ML71
measuring system
(data type depending on measuring
system settings)
Bit-coded status word according to
Table 5
All measuring values accumulated by
an ML71 measuring system as a
data block for scanning (data type
depending on measuring system
settings)
Integer or float
Measuring value 2 ...
Integer or float
Measuring value 2 ...
Integer or float
Measuring value 2 ...
Parameter index
[Subindex]
Index
value channel
(0..127)
Number
values per record (columns)
[Max. number of records
(lines)]
Integer or float
Measuring value m (128 max.)
Integer or float
Measuring value m (128 max.)
Integer or float
Measuring value m (128 max.)
7
of
the
measuring
of
measuring