In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
IgH setup EtherCAT data flow
After starting the IgH protocol stack, the protocol stack will automatically initialize the EtherCAT from the station to the PREOP mode, migrate from the PREOP state to the SAFEOP state, and need to set PDO, DC and other data. Take Shanyang Electric Motor as an example, the data setting process is shown in figure 1.1:
Figure 1.1 PREOP state transition process IgH application implementation process request to get the main stack
Before configuring the data, first get a main stack structure that corresponds to the master in the protocol stack. Through the acquired main stack structure, the data is configured into the data structure in the protocol stack (currently there is only one main stack, redundant backup is not supported).
Figure 2.1 apply for the main stack interface to create a data domain for each slave station
Create its own data field for each slave station to store the process data and other dependent data of the slave station.
Figure 2.2 creating a data field
Configure Slave Information
1) set the product information (manufacturer ID and product code) of the slave station according to the location of the slave station.
2) configure synchronization data for each slave station. SM0 and SM1 are used for MailBox data synchronization, but not for the time being. SM2 is used for RxPDO data synchronization and SM3 is used for TxPDO data synchronization.
3) by mapping the synchronization register data of each slave station to the application space, the data and state of the slave station can be read and changed in real time by reading and writing variables in the application program.
Figure 2.3 configuring slave information
Configure synchronous clock
Set the DC synchronization clock of the slave station.
Figure 2.4 setting the DC synchronization clock to activate the main stack
The above process only stores the data in the data field of each slave station in the main stack and is not configured in the slave station. Activating the master stack activates the state machine in which the OP thread performs slave initialization.
Figure 2.5 activating the main stack
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.