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 between 100
(channel 0) and 163 (channel 63), inclusive. Like all VT1419A 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 VT1533A), the channel’s identifiers (Occc and Iccc) can take on the values 0
through 255. To access individual bit values, 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 VT1534A), its channel identifiers can only take on the
values 0 and 1. Examples:
O148 = 1;
assign value to output chan 0 on
VT1534A.
Inp_val = I160;
from 8-bit channel on VT1533A
Inp_val will be 0 to 255.
Bit_4 = I156.B4;
assign VT1533A chan 56 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:
O132= 12.5;
send value to output channel
buffer element 0
O156.B4 = ! O156.B4;
compliment value found in output
channel buffer element 56, bit 4
each time algorithm is executed.
writecvt(O132,32);
send value of output channel 132
to CVT element 32
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 = I157.B0;
retrieve value from Input
Channel Buffer element 57, bit 0
inp_value = I124;
retrieve value from Input
Channel Buffer element 24
O132 = 4 * I124;
retrieve value from Input
Channel Buffer element 24,
multiply by 4 and send result to
Output Channel Buffer element
32
writefifo(I124);
send value of input channel 24 to
FIFO buffer
The Algorithm Language and Environment
Accessing the VT1419A’s Resources
110
Chapter 4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание VT1419A Multifunction Plus
Страница 5: ...4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 15: ...14 Contents Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 25: ...24 Chapter 1 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 173: ...Notes 172 Chapter 5 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 332: ...332 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 333: ...Appendix A 333 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 334: ...334 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 335: ...Appendix A 335 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 336: ...336 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 337: ...Appendix A 337 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 338: ...338 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 339: ...Appendix A 339 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 340: ...340 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 341: ...Appendix A 341 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 342: ...342 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 343: ...Appendix A 343 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 344: ...344 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 345: ...Appendix A 345 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 346: ...346 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 347: ...Appendix A 347 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 348: ...348 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 349: ...Appendix A 349 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 350: ...350 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 351: ...Appendix A 351 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 352: ...352 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 353: ...Appendix A 353 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 354: ...354 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 355: ...Appendix A 355 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 356: ...356 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 357: ...Appendix A 357 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 358: ...358 Appendix A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 370: ...Notes 370 Appendix C Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...