Download 5 - GE Intelligent Platforms: Support Home

Transcript
5
Example VMEWRT Function
In the following example, the hexadecimal value FFFF is written to each of 20 words on
the PCM during every sweep when enabling input %M00001 is true. The starting
(lowest) PCM address is specified by the contents of %R00019 (low word) and %R00020
(high word). Unless an error occurs while writing the data, internal coil %M00055 is set
to true.
|
|
_____
| %M00001
|
|
%M00055
|———] [—————————| VME_|——————————————————————————————————————————————————( )—
|
| WRT_|
|
| WORD|
|
CONST —|IN
|
|
FFFF
| LEN |
|
|00020|
|
CONST —|AM
|
|
0039
|
|
|
|
|
|
%R00019 —|ADR |
|
|_____|
|
The PCM must be located in the rack and slot corresponding to the address contained in
%R00019 and %R00020. The MegaBasic user program would read this data from the
PCM dual port RAM, using an EXAM statement at the appropriate address.
5-106
Series 90 Programmable Coprocessor Module and Support Software User’s Manual – November 1999
GFK-0255K