118
Creating and Running Custom Algorithms
Accessing I/O
Channels
In the Algorithm Language, channels are referenced as pre-defined variable
identifiers. The general channel identifier syntax is "Iccc" for input channels
and "Occc" for output channels; where ccc is a channel number from 100
(channel 0) through 163 (channel 63). Like all HP E1415 variables, channel
identifier variables always contain 32-bit floating point values even when
the channel is part of a digital I/O SCP. If the digital I/O SCP has 8-bit
channels (like the HP E1533), the channel’s identifiers (Occc and Iccc) can
take on the values 0 through 255. To access individual bit values you may
append ".Bn" to the normal channel syntax; where n is the bit number (0
through 7). If the Digital I/O SCP has single-bit channels (like the
HP E1534), its channel identifiers can only take on the values 0 and 1.
Examples:
O100 = 1;
assign value to output chan 0 on
HP E1534.
Inp_val = I108;
from 8-bit channel on HP E1533
Inp_val will be 0. to 255.
Bit_4 = I109.B4;
assign HP E1533 chan 9 bit 4 to
variable Bit_4
Output Channels
Output channels can appear on either or both sides of an assignment
operator. They can appear anywhere other variables can appear. Examples:
O100 = 12.5;
send value to output channel
buffer element 0
O108.B4 = ! O108.B4;
compliment value found in
output channel buffer element 8,
bit 4 each time algorithm is
executed.
writecvt(O116,350);
send value of output channel 16
to CVT element 350
Input Channels
Input channel identifiers can only appear on the right side of assignment
operators. It doesn’t make sense to output values to an input channel. Other
than that, they can appear anywhere other variables can appear. Examples:
dig_bit_value = I108.B0;
retrieve value from Input
Channel Buffer element 8, bit 0
inp_value = I124;
retrieve value from Input
Channel Buffer element 24
O156 = 4 * I124;
retrieve value from Input
Channel Buffer element 24,
multiply by 4 and send result to
Output Channel Buffer element
56
writefifo(I124);
send value of input channel 24 to
FIFO buffer
Defined Input and Output
Channels
Your algorithm "references" channels. It can reference input or output
channels. But, in order for these channels to be available to your algorithm
they must be "defined". What we mean by "defined" is that an SCP must be
installed, and an appropriate SOURce or SENSe :FUNCtion must explicitly
Summary of Contents for VXI 75000 C Series
Page 2: ......
Page 16: ...16 ...
Page 18: ......
Page 30: ...30 Getting Started Chapter 1 Notes ...
Page 32: ...32 Field Wiring Chapter 2 Figure 2 1 Channel Numbers at SCP Positions ...
Page 44: ...44 Field Wiring Chapter 2 Figure 2 11 HP E1415 Terminal Module ...
Page 54: ...54 Field Wiring Chapter 2 Notes ...
Page 61: ...Programming the HP E1415 for PID Control 61 Chapter 3 Programming Overview Diagram ...
Page 136: ...136 Creating and Running Custom Algorithms Chapter 4 Notes ...
Page 152: ...152 Algorithm Language Reference Chapter 5 Notes ...
Page 304: ...304 HP E1415 Command Reference Chapter 6 Command Quick Reference Notes ...
Page 308: ...308 Specifications Appendix A Thermocouple Type E 200 800C SCPs HP E1501 02 03 ...
Page 309: ...Specifications 309 Appendix A Thermocouple Type E 200 800C SCPs HP E1508 09 ...
Page 310: ...310 Specifications Appendix A Thermocouple Type E 0 800C SCPs HP E1501 02 03 ...
Page 311: ...Specifications 311 Appendix A Thermocouple Type E 0 800C SCPs HP E1509 09 ...
Page 312: ...312 Specifications Appendix A Thermocouple Type E Extended SCPs HP E1501 02 03 ...
Page 313: ...Specifications 313 Appendix A Thermocouple Type E Extended SCPs HP E1508 09 ...
Page 314: ...314 Specifications Appendix A Thermocouple Type J SCPs HP E1501 02 03 ...
Page 315: ...Specifications 315 Appendix A Thermocouple Type J SCPs HP E1508 09 ...
Page 316: ...316 Specifications Appendix A Thermocouple Type K SCPs HP E1501 02 03 ...
Page 317: ...Specifications 317 Appendix A Thermocouple Type R SCPs HP E1501 02 03 ...
Page 318: ...318 Specifications Appendix A Thermocouple Type R SCPs HP E1508 09 ...
Page 319: ...Specifications 319 Appendix A Thermocouple Type S SCPs HP E1501 02 03 ...
Page 320: ...320 Specifications Appendix A Thermocouple Type S SCPs HP E1508 09 ...
Page 321: ...Specifications 321 Appendix A Thermocouple Type T SCPs HP E1501 02 03 ...
Page 322: ...322 Specifications Appendix A Thermocouple Type T SCPs HP E1508 09 ...
Page 323: ...Specifications 323 Appendix A 5K Thermistor Reference SCPs HP E1501 02 03 ...
Page 324: ...324 Specifications Appendix A 5K Thermistor Reference SCPs HP E1508 09 ...
Page 325: ...Specifications 325 Appendix A RTD Reference SCPs HP E1501 02 03 ...
Page 326: ...326 Specifications Appendix A RTD SCPs HP E1501 02 03 ...
Page 327: ...Specifications 327 Appendix A RTD SCPs HP E1508 09 ...
Page 328: ...328 Specifications Appendix A 2250 Thermistor SCPs HP E1501 02 03 ...
Page 329: ...Specifications 329 Appendix A 2250 Thermistor SCPs HP E1508 09 ...
Page 330: ...330 Specifications Appendix A 5K Thermistor SCPs HP E1501 02 03 ...
Page 331: ...Specifications 331 Appendix A 5K Thermistor SCPs HP E1508 09 ...
Page 332: ...332 Specifications Appendix A 10K Thermistor SCPs HP E1501 02 03 ...
Page 333: ...Specifications 333 Appendix A 10K Thermistor SCPs HP E1508 09 ...
Page 334: ...334 Specifications Appendix A Notes ...
Page 346: ...346 Glossary Appendix C Notes ...
Page 388: ...388 Generating User Defined Functions Appendix F Notes ...