2011|08|
2013|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|05|06|07|08|09|10|11|12|
2016|01|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|

2015-07-16 EtherCATに関するメモ(なんでも)

 
  
ado: Physical memory(DPRAM) or register one wants to read out.
 
adp: This value defines which EtherCAT slave is addressed by this command. Which slave is addressed by this value depends on the addressing type defined by eType:
 
ADP, = Address Position
 
SOEMのhttp://janpaulus.github.io/d5/d74/ethercatbase_8c.htmlが分かりやすい。
 
int ec_BWR	(
uint16 	ADP,
uint16 	ADO,
uint16 	length,
void * 	data,
int 	timeout	 
)			
BRW "broadcast write" primitive.
 
Blocking.
 
Parameters:
[in] 	ADP 	= Address Position, normally 0
[in] 	ADO 	= Address Offset, slave memory address
[in] 	length 	= length of databuffer
[in] 	data 	= databuffer to be written to slaves
[in] 	timeout 	= timeout in us, standard is EC_TIMEOUTRET
Returns:
Workcounter or EC_NOFRAME
Definition at line 163 of file ethercatbase.c.
 
 Here is the call graph for this function:
 Here is the caller graph for this function:
 
int ec_BRD	(
uint16 	ADP,
uint16 	ADO,
uint16 	length,
void * 	data,
int 	timeout	 
)			
BRD "broadcast read" primitive.
 
Blocking.
 
Parameters:
[in] 	ADP 	= Address Position, normally 0
[in] 	ADO 	= Address Offset, slave memory address
[in] 	length 	= length of databuffer
[out] 	data 	= databuffer to put slave data in
[in] 	timeout 	= timeout in us, standard is EC_TIMEOUTRET
Returns:
Workcounter or EC_NOFRAME
Definition at line 189 of file ethercatbase.c.
 
 Here is the call graph for this function:
 Here is the caller graph for this function: