
Section 7. Measurement Instructions
Const COSET1=0 'Offset
Dim CANBlk1(CANREP1) 'Dimensioned Dest
' \ \ \ \ \ \ \ \ \ \ \ \ Aliases and other Variables / / / / / / / /
Alias Canblk1(1)=Engine_Speed
' \ \ \ \ \ \ \ \ \ \ \ \ \ PROGRAM / / / / / / / / / / / / / / / / /
BeginProg
Scan(PERIOD,P_UNITS,0,0)
'____________________ CAN Blocks_______________________
'Retrieve Data from CAN-bus network
Canbus (CANBLK1(), ADDR1, TQUANT, TSEG1, TSEG2,
217056256, DTYPE1, STBIT1, NBITS1, NVALS2, CMJLT1, COSET1)
Next Scan
EndProg
SDMCD16AC (Source, Reps, SDMAddress)
The SDMCD16AC instruction is used to control an SDM-CD16AC, SDM-
CD16, or SDM-CD16D 16 channel relay/control port device.
A port on an SDM-CD16xx is enabled/disabled (turned on or off) by sending a
value to it using the SDMCD16AC instruction. A non-zero value will turn the
port on; a zero value will turn it off. The values to be sent to the SDM-
CD16AC are held in the Source array.
Parameter
& Data Type
Enter
Source
Array
The array which holds the values that will be sent to the SDM-CD16AC to
enable/disable its ports. An SDM-CD16AC has 16 ports; therefore, the
source array must be dimensioned to 16 times the number of Repetitions
(the number of SDM-CD16AC devices to be controlled). As an example,
with the array CDCtrl(32), the value held in CDCtrl(1) will be sent to port 1,
the value held in CDCtrl(2) will be sent to port 2, etc. The value held in
CDCtrl(32) would be sent to port 16 on the second SDM-CD16AC..
Reps
Constant
The Reps parameter is the number of SDM-CD16AC devices to be
controlled with this instruction.
SDMAddress
Constant
The address of the first CD16AC that will be controlled with this
instruction. Valid SDM addresses are 0 through 15. If the SDMTrigger
instruction is used in the program, address 15 should not be used. If the
Reps parameter is greater than 1, the datalogger will increment the SDM
address for each subsequent device that it communicates with.
SDMINT8 (Dest, Address, Config8_5, Config4_1, Funct8_5, Funct4_1,
OutputOpt, CaptureTrig, Mult, Offset )
This Instruction allows the use of the SDM-INT8, 8 Channel Interval Timer,
with the CR800. The SDM-INT8 is a (S)ynchronous (D)evice for the
(M)easurement of intervals, counts between events, frequencies, periods,
and/or time since an event. See the SDM-INT8 manual for more information
about its capabilities.
7-36
Commentaires sur ces manuels