Reference Manual
PMAC 2 Software Reference
48 PMAC I-Variable Specifiation
I69 Modbus TCP Software Control Panel Start Address
Range
$0 – $FFFF
Units
PMAC addresses
Default
0
Remarks
I69 enables and specifies the address of the start of the Modbus TCP software control
panel in PMAC. I69 permits a software control panel to be commanded over the Modbus
TCP link, typically from a PLC, using part of the user buffer created with the DEFINE
UBUFFER command and reserved for Modbus TCP use with I67. If I69 is set to a value
greater than 0, this software control panel is enabled. Typically, I69 is set to a value 128
($80) greater than the value of I67, so this control panel starts at an address 128 higher
than the beginning of the entire Modbus TCP buffer. For example, if the beginning of the
Modbus buffer were at $9F00, I69 could be set to $9F80.
The software control panel occupies 18 long words of PMAC memory. The structure
functions of the Modbus panel are equivalent to those for the DPRAM software control
panel, which are documented in the Memory and I/O Map chapter of the Software
Reference Manual at their default addresses of $D000 - $D011.
The operation of the Modbus control panel is independent of that for the DPRAM control
panel (which is controlled by I2). One, neither, or both of these control panels may be
active at one time.
I70 – I77 Analog Table Setup Lines
Range
$000000 - $FFFFFF
Units
none
Default
$0
Remarks
PMAC2 firmware automatically selects and reads the channels of Option 12 and 12A A/D
converters in a round-robin fashion. This function is controlled by a data table in variables
I70 – I77 which operates much like the encoder conversion table. The eight I-variables (X
registers) contain the channel-select information, and the eight Y-registers contain the A/D
results. Each X and Y word is split into two 12-bit halves, where the lower 12 bits work
with the first A/D converter set (Option 12), and the higher 12 bits work with the second
A/D converter set (Option 12A).
The data table looks like this:
Setup
I-Variable
I-Variable
Upper 12 Bits
I-Variable
Lower 12 Bits
Result
Address
Y Word
Upper 12 Bits
Y Word
Lower 12 Bits
I70 CONFIG_W2 CONFIG_W1 Y:$0708 DATA_W2 DATA_W1
I71 CONFIG_W2 CONFIG_W1 Y:$0709 DATA_W2 DATA_W1
I72 CONFIG_W2 CONFIG_W1 Y:$070A DATA_W2 DATA_W1
I73 CONFIG_W2 CONFIG_W1 Y:$070B DATA_W2 DATA_W1
I74 CONFIG_W2 CONFIG_W1 Y:$070C DATA_W2 DATA_W1
I75 CONFIG_W2 CONFIG_W1 Y:$070D DATA_W2 DATA_W1
I76 CONFIG_W2 CONFIG_W1 Y:$070E DATA_W2 DATA_W1
I77 CONFIG_W2 CONFIG_W1 Y:$070F DATA_W2 DATA_W1
where: