Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleRevision Info

This page currently corresponds to the Ns=82 83 revision of the MCode.

Global Variable Declarations

...

  • Signal state change to 0 (Mode Select)
  • Mode Select Loop START (forever):
    • If Se=1, branch to Mode 1: One-Shot
    • If Se=2, branch to Mode 2: Flip-Flop
    • If Se=3, branch to Mode 3: Burst
    • If Se=4, branch to Mode 4: Fast Open
    • If Se=5, branch to Mode 5: Fast Close
    • If Se=7, branch to Mode 7: Home
    • Increment heartbeat
    • Hold for 100ms
  • Mode Select Loop END

...

  • Signal state change to 10 (One-Shot Init)
  • Load One-Shot speeds (V1)
  • Specify One-Shot ISR (J1) to run on Input Trip
  • Arm Input Trip (TE=TE|4)
  • Signal state change to 11 (One-Shot Loop)
  • One-Shot Loop START (forever):
    • Increment heartbeat
    • Hold for 100ms
    • If user sets the soft reset (Se=0)
      • Go back to mode selectBranch to Fast Close (Mode 5)
    • EndIf
    • If movement is complete (Sd=90)
      • Signal state change to 12 (One-Shot Complete)
    • EndIf
  • One-Shot Loop END

...

  • Signal state change to 20 (Flip-Flop Init)
  • Load Flip-Flop speeds (V2)
  • Specify Flip-Flop ISR (J2) to run on Input Trip
  • Arm Input Trip (TE=TE|4)
  • Signal state change to 21 (Flip-Flop Loop)
  • Flip-Flop Loop START (forever):
    • Increment heartbeat
    • Hold for 100ms
    • If user sets the soft reset (Se=0)
      • Go back to mode selectBranch to Fast Close (Mode 5)
    • EndIf
    • If at least one movement is complete (Sd=90)
      • Signal state change to 22 (Flip-Flop Loop Active)
    • EndIf
  • Flip-Flop Loop END

...

  • Signal state change to 30 (Burst Mode Init)
  • Load Burst speeds (V3)
  • Specify Burst Open ISR (J3) to run on Input Trip
  • Arm Input Trip (TE=TE|4)
  • Signal state change to 31 (Burst Loop)
  • Burst Loop START (forever):
    • Increment heartbeat
    • Hold for 100ms
    • If user sets the soft reset (Se=0)
      • Go back to mode selectBranch to Fast Close (Mode 5)
    • EndIf
  • Burst Loop END

NOTE: Once in the burst loop, you must set Se=0 to get back to Mode Select. Burst mode is continuous, that is that each subsequent trigger pulse will open and close the shutter.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="401a71735e22433c-3b1ee568-4b054c60-aa5cb49b-2d903c1f406430aa2ab04de7"><ac:plain-text-body><![CDATA[

Var

Value [step/s(^2)]

[deg/s(^2)]

[rev/s(^2)]

]]></ac:plain-text-body></ac:structured-macro>

VI

5300

1192.5

3.3125

VM

156250

35156

97.656

A

1875000

421880

1171.9

D

1875000

421880

1171.9

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ac72687bdd446153-8f3b1010-4de94d62-907f9213-d90e9ef676408347cccf14f7"><ac:plain-text-body><![CDATA[

Var

Value [step/s(^2)]

[deg/s(^2)]

[rev/s(^2)]

]]></ac:plain-text-body></ac:structured-macro>

VI

640

144

0.4

VM

2560

576

1.6

A

640

144

0.4

D

640

144

0.4