industrialNETworXnetx

liuyan | 28.01.2010 | 12:21 | 1 reply

How to use the ESM tasks

Hello, netX work group!
I have some some questions about some flags in ECAT structures.
1 What's the meaning about the usSynControl in ECATESM_ALCONTROL_EXT_IND_DATA_T, i have no idea about it and i can't find the relavent explanation in EtherCAT protocols.

2 As i know from the api, if i have set a queue as state machine transition control reciever by ECAT_ESM_SET_QUEUE_CNF_AL_CONTROL_REQ, i can control the state transition recieving the ALCONTROL_CHANGE_IND, and i can set ALSTATUS_REQ to present success or failure.
But when i do so, some error appears using TwinCAT as master, the state machine can't change to op, it always return to init state. Should i set ECAT_DPM_SET_UPDATE_CFG_REQ?

3 what's the meaning of host triggered update what's the different between free run. And the bus triggered update of SM2 is the End Of Frame and SyncManger Watchdog triggered update mode? Host update on Sm2 enbled?

Andreas Jacob | 02.02.2010 | 06:28

Hi Liuyan,

here are some answers to your question:

1) The "usSyncControl" is related to the Esc registers stating what has been set by the
master. For a detailed explanation have a look into the ETG.1000 specification

2) Here it would be very helpfull to get a package trace from you. Otherwise it will be really hard to say, whyt's going wrong.

3) The bus triggered Sm2 happens, if the master accesses the Sm2 protected data area.
The difference when the process data update towards the DPM is happening.

Free-run requires the host-triggered update. Whereas the Bus triggered update does not
require host-triggered update since the protocol event is enabled.

Regards
AJ

Login

Registration
netX Community Day

When
March 25th, 2010
10:00 - 17:00

Where
Automation day
D-Böblingen

Registration required …