Difference between revisions of "EtherCAT:EC PDO WRITE"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{Axystems:Template:EtherCAT-Function |DESCRIPTION= While the system is running we are able to read and write specific PDOS <big>without</big> interfering with the realtime f...")
 
m
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Axystems:Template:EtherCAT-Function
+
{{Languages|EtherCAT:EC_PDO_WRITE}}
 +
{{Template:EtherCAT-Function
  
 
|DESCRIPTION=
 
|DESCRIPTION=
While the system is running we are able to read and write specific PDOS <big>without</big> interfering with the realtime functionality<br/>
+
While the system is running, you can read from and write to PDOs ''without interfering'' with the real-time functionality of the system.<br/>
of the system.<br/>
 
 
This subroutine writes a value to a specific PDO within the current cycle.
 
This subroutine writes a value to a specific PDO within the current cycle.
  
Line 13: Line 13:
  
 
|RETURN VALUE=
 
|RETURN VALUE=
Value that is read from the PDO.
+
Void
  
 
|DECLARATION=
 
|DECLARATION=
Line 19: Line 19:
  
 
|SYNTAX=
 
|SYNTAX=
retVal = EC_PDO_WRITE(<Slave address>, <PDO index>, <PDO sub-index>, <new value>)
+
call EC_PDO_WRITE(<Slave address>, <PDO index>, <PDO sub-index>, <new value>)
 +
 
 +
|EXCEPTIONS=
 +
EC_SLAVE_ADDRESS_ERROR - "SLAVE ADDRESS ERROR" 20032<br/>
 +
EC_PDO_PARMS_ERROR - "INVAILD PDO PARAMETERS" 20040<br/>
 +
EC_PDO_DIRECTION_ERROR - "PDO WRONG DIRECTION (INPUT/OUTPUT)" 20046<br/>
  
 
|EXAMPLE=
 
|EXAMPLE=
retVal = EC_PDO_WRITE(2, 0x6071,0, 5)  '  Write VCMD PDO
+
call EC_PDO_WRITE(2, 0x6071,0, 5)  '  Write VCMD PDO
  
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:EtherCAT:EC_PDO_READ|EC_PDO_READ]]
+
* [[EtherCAT:EC PDO READ|EC_PDO_READ]]
* [[Axystems:EtherCAT:EC_SDO_READ|EC_SDO_READ]]
+
* [[EtherCAT:EC PDO READ N|EC_PDO_READ_N]]
* [[Axystems:EtherCAT:EC_SDO_WRITE|EC_SDO_WRITE]]
+
* [[EtherCAT:EC SDO READ|EC_SDO_READ]]
 +
* [[EtherCAT:EC SDO WRITE|EC_SDO_WRITE]]
  
 
}}
 
}}

Latest revision as of 14:05, 6 May 2017

Language: English  • 中文(简体)‎

While the system is running, you can read from and write to PDOs without interfering with the real-time functionality of the system.
This subroutine writes a value to a specific PDO within the current cycle.

Input

Slave address, PDO index, PDO sub-index, new value to be written.

Output

None

Return Value

Void

Declaration

public sub EC_PDO_WRITE(byval slaveaddress as long, byval index as long, byval subindex as long, byval new_val as long)

Syntax

call EC_PDO_WRITE(<Slave address>, <PDO index>, <PDO sub-index>, <new value>)

Exceptions

EC_SLAVE_ADDRESS_ERROR - "SLAVE ADDRESS ERROR" 20032
EC_PDO_PARMS_ERROR - "INVAILD PDO PARAMETERS" 20040
EC_PDO_DIRECTION_ERROR - "PDO WRONG DIRECTION (INPUT/OUTPUT)" 20046

Examples

call EC_PDO_WRITE(2, 0x6071,0, 5) ' Write VCMD PDO

See Also