Omron 3G3AX-MX2-PRT-E User Manual page 42

Mx2 profibus option board
Hide thumbs Also See for 3G3AX-MX2-PRT-E:
Table of Contents

Advertisement

Accessing Parameters
4-5-1-1
Accessing Option Board Parameters
Step 1
Step 2
28
When a task fails, the Option Board writes a 7 or 8 (Task failed) to AK and an
error number to PWE in the input process area. All error numbers are listed in
APPENDIX G PROFIdrive Error Numbers.
Note
If you want to use a DINT to write or read PWE, you will have to swap the
high- and low-word in your PLC program (For double-words, an OMRON
PLCs does not use the same word-order convention than PROFIBUS).
Note
The parameter processing message area is only available when using the
PPO Type 1, PPO Type 2 or PPO Type 5 module. To access parameters when
using the PPO Type 3 or PPO Type 4 module, make use of the PROFIdrive
DP-V1 parameter channel (Refer to section 4-5-2 PROFIdrive DP-V1 Param-
eter Channel).
Tip
Use the following sequence when starting a read or write task:
1.
Set AK=0.
2.
Set PNU, IND and PWE.
3.
Set AK to the desired task.
The parameter processing message mailbox is triggered by a change in the
parameter processing output area. By first setting AK=0, you avoid uninten-
tionally starting a write task when you start changing PNU, IND and PWE.
Option Board parameters are addressed by writing the parameter number to
PNU (Refer to APPENDIX F Option Board Parameters for a list of the avail-
able Option Board parameters). If you are addressing an element in an Option
Board parameter array, you must also write the element index to IND. When
writing an Option Board parameter, the task number specifies the write size.
The following example demonstrates how to use the parameter process mes-
sage area to access Option Board parameters:
Reading an Option Board Parameter: To read Option Board parameter 965
(Unit profile code): First set PNU and then AK as illustrated below. The Option
Board will respond with the illustrated values.
Table 40 Parameter Processing Message Area-Reading PNU965
Output area [hex] 1
Word offset
Function
Input area [hex]
Reading an Option Board array element: To read Option Board parameter
element 915.3 (Modbus address mapped into PZD3): Set PNU=393h (915
dec), AK=6 and IND=3.
Read parameter value task
Parameter number 965
3C5
00
+0
+1
AK
PNU
IND
1
3C5
00
Task success (WORD parameter) response
Read value (The unit profile code)
Section 4-5
00
0000
+2
-
PWE
00
0000
0000
+3
0302

Advertisement

Table of Contents
loading

Table of Contents