Download PACSystems Memory Xchange Modules Users` Manual
Transcript
2 5. Use a BUS_WRT_DWORD function to write data to the network. Do not inadvertently overwrite data from another node. To detect whether the write operation succeeded or failed, record the value of the ST (status) output and note whether the BUS_WRT function passed power. For example, if the module is not in the rack or if an incorrect slot number is used as an input to the function, the BUS_WRT operation will not succeed. If the bus write operation is successful, the BUS_WRT function will pass power and the ST output will have a value of 0. In the following example, the inputs R, S, RGN and OFF indicate the data is being written to a module located in Rack 0, Slot 5, Region 1 and Offset 16. For details on the use of BUS_WRT and BUS_RD functions, refer to “BUS_ Functions” in Chapter 4. BUS_WRT_DWORD Function Details Parameter ?? Definition Length. Specifies the number of DWORDs to write. Inputs IN Starting address of the data to write. Must be a DWORD variable. R Rack location of module. For a Memory Xchange module, must be 0 (Main rack). S Slot location of module. SS Subslot (always 0) RGN Region in module user memory to write to. Region 1 corresponds to the module’s reflective memory. OFF BYTE offset of starting address to be written to within the memory region. This is a 0-based address. Note that Offset is specified in BYTEs regardless of the type of BUS_ function being used. For maximum performance, Offset should be specified in numbers divisible by 4, so that bus access is DWORD aligned. Output ST GFK-2300D Status word for the write operation. Chapter 2 QuickStart 2-3