[Note] slave stack code tool parameter configuration

Source: Internet
Author: User

Chapter 4

Hardware access

Slave stack code can be executed on multiple platforms and controller architecture. Therefore, the source code contains multiple definitions to meet specific hardware requirements. This chapter describes the specific hardware configuration and hardware access functions using a common stack layer.

 

Applicable

Slaveinformation

Define: vendor_name ethercat slave vendor name

Ethercat slave site vendor name

 

Define: device_name name of the slave device (Object 0x1008)

Definition: device_name0 x1008 slave device name (object)

Generic

Definition: system_header_file includes the syntax system header file

Define: esc_eeprom_access_support

If this switch is set the slave stack providesfunctions to access the EEPROM.

Definition: esc_eeprom_access_support. If this toggle sets the slave stack to provide the epem function for access.

Hardware

El9800_hw

It should be set if an el9800 evaluation board is executed on the slave code (mci_hw should be used if the MCI interface provided by the el9800 board of directors should be set and this definition should be reset ). If necessary, you should also set the host controller to connect through spi esc. Note: The PDI type also needs to be configured in "esc_config_data ".

Define: mci_hw

The mci esc connection to be configured. Note: The PDI type also needs to be configured in "esc_config_data ".

Microcontroller interface (MCI, microcontroller Interface)

Definition: fc1100_hw: The ethercat sub-controller should be set to be in a fc1100 PCIe card. Note: The PDI type also needs to be configured in "esc_config_data ".

Definition: hw_access_file

Define user-specific hardware including syntax access files. Myhardwareh (only add if no hardware access is selected by default) Note: The PDI type also needs to be configured in "esc_config_data ". (Is it important? Should be changed to the access function of stm32)

The current idea is to modify or compare the functions similar to pic8 in the source file. The more troublesome method is to compare the datasheet with pic8.

Definition: The controller_16bit host controller should be set when it is a 16-bit architecture

Definition: controller_32bit the host controller should be set to a 32-bit architecture

 


Definition: _ pic18 microchip pic18f452 specific code this processor is installed on the beckhoff slave evaluation board (hardware version el9800_2 ).

Definition: _ pic24 microprocessor pic24hj128gp306 specific code this processor is installed on the beckhoff slave evaluation board (hardware version el9800_4a ).

 

Definition: esc_16bit_access if the single-chip microcomputer only supports 16-bit access to ESC.

Definition: esc_32bit_access if the microcontroller only supports 32-bit access to ESC.

Definition: mbx_16bit_access: if the single-chip microcomputer only supports 16-bit access to the local mailbox memory (access to the esc dpram is done by "esc_16bit_access "). If you reset the 8-bit access.

 

Definition: big_endian_16bit if the single-chip microcomputer always enables 16-bit access to external memory, bigendian format operations and high-and low-byte conversion are completed in hardware.

Definition: big_endian_format if the microcontroller is in the bigendian format, this switch should be set. In this case, all words and DWORD-accesses make one byte or word-swapping macro swapword and swapdword ecatslv. H may be adapted. If this switch is set, big_endian_16bit should be reset.

Definition: ext_debuger_interface if this switch is set, the external debugger interface el9800_4a (_ pic24) will be activated. This definition is ignored if _ pic24 is not set.

 

Definition: leds_supportedethercat state ing to the direction of the lead

Definition: The esc_support_ecat_led switch can be enabled if the connection to ESC supports errors and run lead instructions. View more details about the data table ESC.

Definition: esc_eeprom_emulation. If this toggle is set to support epmns simulation. Not all ESC types support epem simulation. For more information, see the ESC data table.

 


Definition: esc_eeprom_size specifies the size of eepm bytes or simulate epmconnect.

 

Definition: eeprom_read_size. If eepm only needs to be simulated to be active. This value defines the number of bytes that each spare part will read.

 

Ethercat state machine

Definition: bootstrapmode_supported this switch should be set if the foe service of firmware update is supported. If this switch is set, set "foe_supported ".

Definition: op_pd_required if this switch is reset to safeop_2_op, it will also succeed if no data is processed. The regulatory authority will only take the initiative to receive the first data processing (becatfirstoutputsreceived)

Definition: preoptimeout is used to convert the initial state to the specified timeout value preop/boot. (ESI value: "preoptimeout "). Note: The value in the stack-50 ms will be used for the response before the master operation times out.

Definition: safeop2optimeout specific timeout from safeop file (ESI value: "safeopoptimeout") Note: This value in the stack-50 ms will be used for the response before the master operation times out.

 

Synchronization

Definition: whether dc_supported should support the slave station of the distributed clock, and then this switch should be set. If you set this toggle, you should also set al_event_enabled. Note: The DC support must also be set in "esc_config_data.

Definition: ecat_timer_int if this toggle is set, the monitored time ethercat watchdog timer interrupt program will check.

Definition: min_pd_cycle_time: minimum cycle time supported by NS slaves (Entry 0 x1c32: 05 or entry 0 x1c33: 05)

Definition: max_pd_cycle_time: maximum cycle time supported by NS slaves

Definition: pd_output_delay_time: minimum output latency supported by NS slaves (input 0 x1c32: 09)

Application

Definition: sample_application_interface select this definition to activate this sample application interface. This provides a simple interface to create a static library and use it for external applications. Note: The file "ethercatsamplelibrary. H" includes the library interface (which may need to be adjusted ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.