Figure 36: compiler settings, Figure 37: pic define – BECKHOFF EL9800 User Manual

Page 28

Advertising
background image

I-26

Application Note EL9800

HI-TECH PICC-18 STD compiler (PIC18):
Increment the “identifier length” > 60 and disable code optimization ([Project]  [Build Options]
 [Project]  [Compiler] tab).

Figure 36: Compiler Settings

a. Confirm

that the correct “PIC define” is set. These defines are located in “ecat_def.h”.

For EL9800 hardware up to version 2 select _PIC18.
It is not possible to get full feature setup for the PIC18 in addition to other reasons caused by limited
program memory. So it is necessary to check which features are required for the desired EtherCAT
slave. The corresponding defines are located in “ecat_def.h”.
For EL9800 hardware from version 4 select _PIC24.

Figure 37: PIC define

Advertising