Toshiba CD332 user manual Programming

Page 27

5. Programming

cAt the first scan, initializes the status of the CD332. Important

dEnd of the main program

eResets the interrupt flag and confirms the interrupt factor. Important

fProcessing program for each interrupt factor (Subroutine call can also be used)

gEnd of the interrupt program

NOTE When the Direct I/O instruction for the CD332 is executed, the internal interrupt flag of the CD332 is reset. Therefore, do not use the Direct I/O instruction for the CD332 on the main program, except c above.

User’s Manual 23

Image 27
Contents CD332 Page Important Information Page Safety Precautions Safety SymbolsAbout This Manual About This ManualInside This Manual Related Manuals Contents Section CD332 Overview Introduction CD332 OverviewCD332 External featuresJumper plugs Interrupt timing setting DIP switchesStatus LEDs Input terminalsSection Specifications Specifications General specificationsFunctional specifications Input circuit Input signal connectionsChange Detect DC Input Module CD332 Section Mode Setting Input delay setting Mode SettingOFF Interrupt generation timing settingChange Detect DC Input Module CD332 Section Allocation I/O allocation and I/O register O AllocationIN1 Interrupt assignment Section Programming Interrupt Program #1 I/O#1 ProgrammingT3 sample program Main ProgramProgramming Interrupt operation Programming Change Detect DC Input Module CD332 Page Toshiba Corporation