Difference between revisions of "CANopen:SET DOUT PDO DADD"
m (Text replace - "CANOpen" to "CANopen") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Template:CANopen | + | {{Template:CANopen Firmware Functions |
|DESCRIPTION= | |DESCRIPTION= | ||
+ | '''Obsolete since 0.4.15.3rc8 use [[CANopen:SET DOUT RANGE PDO DADD|SET_DOUT_RANGE_PDO_DADD]]'''<br> | ||
Set COBID and location of 32 Digital Outputs inside TPDO.<br> | Set COBID and location of 32 Digital Outputs inside TPDO.<br> | ||
Outputs are mapped to sys.dout.<dadd*100> to sys.dout.<dadd*100 + 31><br> | Outputs are mapped to sys.dout.<dadd*100> to sys.dout.<dadd*100 + 31><br> | ||
Line 48: | Line 49: | ||
* [[CANopen:SET CFB PDO DADD|SET_CFB_PDO_DADD]] | * [[CANopen:SET CFB PDO DADD|SET_CFB_PDO_DADD]] | ||
* [[CANopen:SET DOUT PDO DADD|SET_DOUT_PDO_DADD]] | * [[CANopen:SET DOUT PDO DADD|SET_DOUT_PDO_DADD]] | ||
+ | * [[CANopen:SET DOUT RANGE PDO DADD|SET_DOUT_RANGE_PDO_DADD]] | ||
+ | * [[CANopen:SET DIN RANGE PDO DADD|SET_DIN_RANGE_PDO_DADD]] | ||
* [[CANopen:SET DIN PDO DADD|SET_DIN_PDO_DADD]] | * [[CANopen:SET DIN PDO DADD|SET_DIN_PDO_DADD]] | ||
* [[CANopen:Configuration Example|Configuration_Example]] | * [[CANopen:Configuration Example|Configuration_Example]] | ||
}} | }} |
Latest revision as of 13:26, 1 March 2016
Obsolete since 0.4.15.3rc8 use SET_DOUT_RANGE_PDO_DADD
Set COBID and location of 32 Digital Outputs inside TPDO.
Outputs are mapped to sys.dout.<dadd*100> to sys.dout.<dadd*100 + 31>
For example:
As for device with physical address 3 outputs will be mapped sys.dout.300 to sys.dout.331
Drives that implement DS402 profile require output mask in 0x60FE subindex 2. Refer to the device manual for details.
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_DOUT_PDO_DADD(byval as long,byval as long,byval as long,byval as long)
Syntax
SET_DOUT_PDO_DADD(<dadd>,<cobid>,<offset>,<size>)
Exceptions
None
Examples
SET_DOUT_PDO_DADD(1,0,0,0) ' Unmap Digital Outputs
call CAN_SDO_WRITE(1,0x1601,01,32,0x60FE0120) 'outputs are mapped to RPDO1 at location #1
call CAN_SDO_WRITE(1,0x60FE,02,32,0xffff0000) 'outputs mask
SET_DOUT_PDO_DADD(1,0x300,0 , 4) ' Digital Outputs is located in bytes 0,1,2 and 3 of TPDO with COBID 0x300