Difference between revisions of "CANopen:SET DIN PDO DADD"

From SoftMC-Wiki
Jump to: navigation, search
m (Lisa moved page CANOpen:SET DIN PDO DADD to CANopen:SET DIN PDO DADD: correction of CANopen)
(odded obsolete warning)
Line 2: Line 2:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
 +
'''Obsolete since 0.4.15.3rc8'''<br>
 
Set COBID and location of 32 Digital Inputs inside TPDO.<br>
 
Set COBID and location of 32 Digital Inputs inside TPDO.<br>
 
Inputs are mapped to sys.din.<dadd*100> to sys.din.<dadd*100 + 31><br>
 
Inputs are mapped to sys.din.<dadd*100> to sys.din.<dadd*100 + 31><br>
Line 46: Line 47:
 
* [[CANopen:SET DOUT PDO DADD|SET_DOUT_PDO_DADD]]
 
* [[CANopen:SET DOUT PDO DADD|SET_DOUT_PDO_DADD]]
 
* [[CANopen:SET DIN PDO DADD|SET_DIN_PDO_DADD]]
 
* [[CANopen:SET DIN PDO DADD|SET_DIN_PDO_DADD]]
 +
* [[CANopen:SET DIN RANGE PDO DADD|SET_DIN_RANGE_PDO_DADD]]
 +
* [[CANopen:SET DOUT RANGE PDO DADD|SET_DOUT_RANGE_PDO_DADD]]
 
* [[CANopen:Configuration Example|Configuration_Example]]
 
* [[CANopen:Configuration Example|Configuration_Example]]
 
}}
 
}}

Revision as of 13:22, 1 March 2016

Obsolete since 0.4.15.3rc8
Set COBID and location of 32 Digital Inputs inside TPDO.
Inputs are mapped to sys.din.<dadd*100> to sys.din.<dadd*100 + 31>

For example:
As for device with physical address 3 inputs will be mapped sys.din.300 to sys.din.331

Input

dadd: device address (physical network address)
cobid: CAN COBID
offset: offset inside PDO, starting from 0
size: in bytes, for example 0x60FE.1 is 4 bytes long

Output

None

Return Value

None

Declaration

import_c SET_DIN_PDO_DADD(byval as long,byval as long,byval as long,byval as long)

Syntax

SET_DIN_PDO_DADD(<dadd>,<cobid>,<offset>,<size>)

Exceptions

None

Examples

SET_DIN_PIN_DADD(1,0,0,0) ' Unmap digital inputs
SET_DIN_PDO_DADD(1,0x280,0 , 4) ' Digital Inputs are located in bytes 0,1,2 and 3 of RPDO with COBID 0x280

See Also