
322
JVL Industri Elektronik A/S - User Manual - Integrated Stepper Motors MIS23x, 34x, 43x
16.5
More about program timing
The firmware is structured so that one program instruction is executed for each pass of
the main loop, which takes approximately 30 microseconds (µs) without CANopen,
without serial communications and when the motor is not running. The Main Loop Time
is termed MLT in the following text.
A single program line in MacTalk can generate more than one instruction. For example,
assigning a constant value to a register uses two instructions: First load the value to the
internal stack and then Store from the stack to the target register. The above table in sec-
tion 16.4 reflects this operation.
The main loop time will vary depending on a number of factors: The motor velocity, the
serial communications speed and load, whether CANopen is installed, and the CANopen
communications speed and load.
Simply running the motor will load the motor up to 17% so the MLT becomes ~= 37
µs at full speed (1023 RPM).
Serial communications on the RS-485 line can load the motor up to 1% at 19.200 baud,
which is insignificant, but at the maximum baud rate of 921.600 the communications can
load the motor up to 45%, which would result in an MLT of ~60 µs.
When CANopen firmware is installed, the basic MLT will change from 30 to 90 µs with
no communications.
When loading the CANbus with communications, the MLT can rise significantly. For ex-
ample, when using seven transmit PDOs with an event timer value of 1 ms and a CANbus
link speed of 500 kbits/s, the MLT can rise to 150-200 µs. Also using RS-485 communi-
cations at high baud rates can result in even longer MLT values. However, this scenario
is very unlikely.
Note: In applications where program timing is critical, tests must be performed
to ensure that timing is satisfactory when communication is running according
to conditions used in production!
Summary of Contents for MIS23 Series
Page 6: ...6 JVL Industri Elektronik A S User Manual Integrated Stepper Motors MIS23x 34x 43x ...
Page 29: ...JVL Industri Elektronik A S User Manual Integrated Stepper Motors MIS23x 34x 43x 27 ...
Page 56: ...54 JVL Industri Elektronik A S User Manual Integrated Stepper Motors MIS23x 34x 43x ...
Page 116: ...114 JVL Industri Elektronik A S User Manual Integrated Stepper Motors MIS23x 34x 43x ...
Page 188: ...186 JVL Industri Elektronik A S User Manual Integrated Stepper Motors MIS23x 34x 43x ...
Page 260: ...258 JVL Industri Elektronik A S User Manual Integrated Stepper Motors MIS23x 34x 43x ...
Page 335: ...JVL Industri Elektronik A S User Manual Integrated Stepper Motors MIS23x 34x 43x 333 ...
Page 341: ...JVL Industri Elektronik A S User Manual Integrated Stepper Motors MIS23x 34x 43x 339 ...