Chapter 4. Ladder Diagram (LD) Programming 
148  PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual  GFK-2950C 
Operands for BUS_RMW 
For BUS_RMW_WORD, the absolute bus address must be a multiple of 2. For BUS_RMW_DWORD, it 
must be a multiple of 4.  
The absolute bus address is equal to the base address plus the offset value. 
Type of operation: 
0 = AND 
1 = OR 
The data mask. DWORD constant or variable. 
Rack number. UINT constant or variable. 
Slot number. UINT constant or variable. 
Subslot number (optional, defaults to 0). UINT 
constant or variable. 
Region (defaults to 1). WORD constant or 
variable. 
The offset in bytes. DWORD constant or 
variable. 
The status of the operation. WORD variable. 
All except variables located in %S—
%SC, and constants 
Original value. DWORD variable. 
All except variables located in %S—
%SC, and constants 
BUS_RMW Status in the ST Output 
The BUS_RMW function returns one of the following values to the ST output: 
Module does not exist at rack/slot location. 
Module at rack/slot location is an invalid type. 
Start address outside the configured range. 
End address outside the configured address range. 
Absolute address even but interface configured as odd byte only 
For WORD type, absolute bus address is not a multiple of 2. For DWORD type, absolute bus address is 
not a multiple of 4. 
Function type too large for configured access type.  
Function parameter invalid.