Table of Contents - TG Drives
Table of Contents - TG Drives Table of Contents - TG Drives
Software System GENERAL This section is intended to introduce the user to the fundamentals of the DMC 2 programming and software system. It contains the following parts: • Definitions Important terms are explained. • System architecture Overview of the DMC 2 software system. • Timing and execution flow Timing and flow aspects important to the programmer. • Event triggered programming The recommended programming technique for the DMC 2 . • Function block diagram Functionality blocks are described. • Load New Firmware Download new Firmware to DMC 2 . NEW FEATURES DMC 2 5.0 • Increased number of program lines , 8191. • Increased number of user registers , 4096. • Fieldbus support using Anybus-S modules from HMS. • Endat interface for absolute encoders. • Incremental encoder interface. • Counter function for external event counting. • Inverted conditional operators such as IfNot,IFAbsNot,added. • Indexed subroutine call added. • More connection possibilities for debug use. • Software definition of rotational direction. • Multiple commutation sources. REMARKS • The PL execution speed is much higher in a DMC2 (10 – 15 lines / servocycle), than in a DMC1, thus it is essential that PL2 program use explicit lines to wait for hardware, this may not have been a problem in the DMC1 because execution speed was between 4 and 1 PL lines/servo-cycle. • DMC1 and new DMC 2 can only be synchronized with respect to I/O. The resolver can not be interchanged between DMC1 and new DMC 2 , because the resolver system operates differently. DEFINITIONS PL2 The proprietary programming language for creating DMC 2 application programs. Consists of PL2 statements. The language is register-based and line oriented. Most functions are accessed by manipulation of register values. Resides in FLASHPROM Firmware The system software of the DMC 2 , performing hardware manipulation, interpretation of the PL2 code and execution of predefined functions. Function block Firmware functions that perform a certain predefined user function, e.g. creating a movement profile, based on preset User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 11
- Page 1 and 2: HEAD OFFICE INMOTION TECHNOLOGIES A
- Page 3 and 4: Table of Contents Table of Contents
- Page 5 and 6: Related items .....................
- Page 7 and 8: Related items .....................
- Page 9: Creating/Editing Source Code ......
- Page 13 and 14: Online terminal mode SOFTWARE SYSTE
- Page 15 and 16: SOFTWARE SYSTEM Event Triggered Pro
- Page 17 and 18: SOFTWARE SYSTEM Figure 4. DMC funct
- Page 19 and 20: SOFTWARE SYSTEM Function block Digi
- Page 21 and 22: SOFTWARE SYSTEM Function block Reso
- Page 23 and 24: SOFTWARE SYSTEM Mode Load a new fir
- Page 25 and 26: PL2 Native position language INTROD
- Page 27 and 28: PL2 NATIVE POSITION LANGUAGE Argume
- Page 29 and 30: PL2 NATIVE POSITION LANGUAGE SCALIN
- Page 31 and 32: PL2 NATIVE POSITION LANGUAGE Specia
- Page 33 and 34: PL2 NATIVE POSITION LANGUAGE Compil
- Page 35 and 36: PL2 NATIVE POSITION LANGUAGE Compil
- Page 37 and 38: PL2 NATIVE POSITION LANGUAGE Condit
- Page 39: PL2 NATIVE POSITION LANGUAGE MACRO
- Page 42 and 43: 42 Standard set Mnemonics PL2 MNEMO
- Page 44 and 45: 44 Standard set Mnemonics Connect A
- Page 46 and 47: 46 Anybus-S Related Mnemonics PL2 M
- Page 48 and 49: 48 Indexed Addressing Mnemonics Set
- Page 50 and 51: 50 Text mode 20 R1=102 30 R2=17 40
- Page 52 and 53: 52 Text mode TRead RAW CH 7 PL2 MN
- Page 54 and 55: 54 Stack handling EXTENDED REGISTER
- Page 56 and 57: 56 Stack handling PUSH ;put data o
- Page 58 and 59: 58 RD1, Resolver/Digital converter
S<strong>of</strong>tware System<br />
GENERAL<br />
This section is intended to introduce the user to the fundamentals <strong>of</strong> the DMC 2<br />
programming and s<strong>of</strong>tware system. It contains the following parts:<br />
• Definitions Important terms are explained.<br />
• System architecture Overview <strong>of</strong> the DMC 2 s<strong>of</strong>tware system.<br />
• Timing and execution flow Timing and flow aspects important to the<br />
programmer.<br />
• Event triggered programming The recommended programming technique for<br />
the DMC 2 .<br />
• Function block diagram Functionality blocks are described.<br />
• Load New Firmware Download new Firmware to DMC 2 .<br />
NEW FEATURES DMC 2 5.0<br />
• Increased number <strong>of</strong> program lines , 8191.<br />
• Increased number <strong>of</strong> user registers , 4096.<br />
• Fieldbus support using Anybus-S modules from HMS.<br />
• Endat interface for absolute encoders.<br />
• Incremental encoder interface.<br />
• Counter function for external event counting.<br />
• Inverted conditional operators such as IfNot,IFAbsNot,added.<br />
• Indexed subroutine call added.<br />
• More connection possibilities for debug use.<br />
• S<strong>of</strong>tware definition <strong>of</strong> rotational direction.<br />
• Multiple commutation sources.<br />
REMARKS<br />
• The PL execution speed is much higher in a DMC2 (10 – 15 lines / servocycle),<br />
than in a DMC1, thus it is essential that PL2 program use explicit lines to wait<br />
for hardware, this may not have been a problem in the DMC1 because<br />
execution speed was between 4 and 1 PL lines/servo-cycle.<br />
• DMC1 and new DMC 2 can only be synchronized with respect to I/O. The<br />
resolver can not be interchanged between DMC1 and new DMC 2 , because the<br />
resolver system operates differently.<br />
DEFINITIONS<br />
PL2 The proprietary programming language for creating DMC 2<br />
application programs. Consists <strong>of</strong> PL2 statements. The language<br />
is register-based and line oriented. Most functions are accessed<br />
by manipulation <strong>of</strong> register values. Resides in FLASHPROM<br />
Firmware The system s<strong>of</strong>tware <strong>of</strong> the DMC 2 , performing hardware<br />
manipulation, interpretation <strong>of</strong> the PL2 code and execution <strong>of</strong><br />
predefined functions.<br />
Function block Firmware functions that perform a certain predefined user<br />
function, e.g. creating a movement pr<strong>of</strong>ile, based on preset<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001 11