I-7231D CANopen/DCON Gateway user manual (ver. 1.04, Dec/14/2010) ------39
objects may be specified as follows:
z There shall be up to 4 enabled TxPDO mapping objects and up to 4
RxPDO mapping objects with default mappings.
z 1st RxPDO and TxPDO mappings are used for digital outputs and
inputs to each other.
z 2nd, 3rd, and 4th RxPDO and TxPDO mapping objects are assigned
to record the value of analog outputs and inputs respectively.
z If a device supports too many digital input or output channels which
exceed the 8 channels, the related analog default PDO mapping
objects shall remain unused and the additional digital I/Os may use
additional PDO mapping objects. This rule shall also be obeyed for
the additional analog channels. Take the RxPDO for example; there
are 11 DO object entries and 13 AI object entries in the object
dictionary. In the default situation for the I-7231D, the first 8 DO object
entries will be mapped to the first RxPDO mapping object because
one DO object entry needs one byte space. The last 3 DO object
entries will be assigned into the 5th RxPDO because of the 2nd and
3rd rule described above. One AO object entry needs 2 bytes of
space. Therefore, the second RxPDO mapping object loads the first 4
AO object entries. The following 4 AO object entries are packed into
the third RxPDO mapping object, and so is the 4th RxPDO mapping
object. Because the 5th RxPDO mapping object has been occupied
by the DO object entries, the last AO object entry shall be assigned
into the 6th RxPDO mapping object.
Before applying the PDO communications, the PDO producer and the
PDO consumers need to have their PDO mapping information for each other.
On the one hand, the PDO producers need PDO mapping information to
decide how to assign the expected practical I/O data into PDO messages. On
the other hand, PDO consumers need the PDO mapping information to know
the meaning of each byte of received PDO message.
That is to say that when a PDO producer transmits a PDO object to PDO
consumers, the consumers contrast this PDO message with PDO mapping
entries which are previously obtained from the PDO producer. Then, interpret
the meanings of these values from the received PDO object. For example, if a
CANopen device has 16 DI, 8 DO, 2 AI, and 1 AO channels. The input or
output values of these channels will be stored into several specific entries for