Home
IDSC-C1DR/C1DT-AE ID Controller User's Manual
Contents
1. LCD display HAHH E Mode selector ID Controller operating mode aoa Instruction Segun keys SI Numeric oe Le J ejos Jen keys DmJGJO OD peration keys only 34 Programming Console Preparations Section3 2 N Caution Note Connecting the Programming Console Monitoring Errors ID Function Test 1 2 3 Other Operations When turning on the ID Controller set it to PROGRAM mode using the mode selector as described in 2 1 3 ID Controller Operating Modes unless you have a specific reason to use another mode If the ID Controller is set to RUN or MON ITOR mode the program will be executed when it is turned on possibly causing a ID Controller controlled system to begin operation The following three sets of keys are labeled differently on the CQM1 PRO01 E and the C200H PRO27 E The operation of the two keys in each pair are identi cal CQM1 PROO1 E C200H PRO27 E Connect the Programming Console s connecting cable to the ID Controller s pe ripheral port as shown below Refer to 2 2 6 Connectable Devices for details on connections Peripheral port The following key sequence can be used to read the ID communic
2. 12 34 5 67 8 9 10 11 12 13 14 15 16 16 cycles to complete one round of execution SR 25410 will turn ON while DSW is being executed Note 1 Do not use DSW more than once within the same program 2 When using DSW set the input constant for the relevant input word to less than the cycle time Input constants can be changed from DM 6620 onwards The characteristics of the digital switch must also be considered in system and program design 3 Input and output bits not used here can be used as ordinary input and output bits With this instruction 4 digit or 8 digit set values can be read in 16 cycles 90 Advanced I O Instructions Section 5 4 Application Example This example shows a program for reading 4 digits from the digital switch As sume that the digital switch is connected to IR 000 input and IR 100 output and assume the default status for all the ID Controller Setup 4 digits to read 00015 05000 05000 10005 When IR 00015 turns ON the IR 05000 will hold itself ON until the One Round Flag IR 10005 turns ON upon completion of one round of reading by DSW The data set from the digital switch by DSW is stored in HR 51 When the One Round Flag 10005 turns ON after reading has been completed the number stored in HR 51 is transferred to DM 0000 5 4 4 7 SEGMENT DISPLAY OUTPUT 7SEG N Caution Hardware Using
3. 30 Installing the ID Controller Section2 3 In order to improve the Electro Magnetic Compatibility EMC connect the LG terminal to the screw on the end plate using the supplied DIN track connecting cable Short circuit bar Supplied with the ID Controller di DIN track cable Supplied with the ID Controller Grounding wire Use a wire of at least 2 mm to ground at a resistance of less than 100 Note Definition of EMC The EMC refers to the capacity of equipment represented in terms of emission which indicates the degree to which electromagnetic waves produced by equip ment do not affect other communications equipment and also in terms of immu nity which indicates the degree of resistance against electromagnetic distur bance Crimp Connectors Crimp connectors for the power supply should be less than 7 mm wide M3 5 mm max NA 7 mm max Tr ide mM O N Caution Forked crimp connectors are required by UL and CSA standards 2 3 3 Connecting the Read Write Head Connection Use the following procedure to connect the Read Write Head 1 2 3 1 Hold on to the rubber molding at the connector of the Read Write Head and align it with the keyed slot on the connector on the ID Controller 2 Press in firmly on the connector until it clicks into place Removal To remove the connector hold onto the ring on the connector and pull straight out
4. je 1 byte gt The Data Carrier memory capacities and accessible address ranges are shown in the following table Memory capacity Address range V600 D2KRO 2K bytes 0000 to 07FF V600 D8KRO 8K bytes 0000 to 1FFF Note There are two types of Data Carrier SRAM Data Carriers which have built in batteries and EEPROM Data Carriers which do not require batteries The ID Communications Mode and other settings in the ID Controller Setup depend on the type of Data Carrier being used The ID Communications Mode in DM 6611 is valid only for EEPROM Data Carriers 75 ID Communications Section 5 3 Production Date Area Write Protect Function 76 Note Note The production date format is valid for a DC with a memory capacity of more than 256 bytes For checking the life of the DC battery the manufacturer registers the production date in the first two bytes of the memory area immediately prior to shipping the DC from the factory Data can be read from this area but cannot be written to it If a write operation to this area is attempted by mistake an error message 7D will be issued The contents of the production date area is shown in the following table Address Bit 7 6 3 2 0000 Month first digit Month second digit 0001 Year first digit Year second digit 1 The last two digits of the year is used For example 92 for 1992 2
5. CO CO CO O O ININININI NIN PO PM Pl NI NIN as a a 1 200 bps 2 400 bps 4 800 bps 9 600 bps 19 200 bps Depending on the devices connected to the RS 232 port it may be necessary to allow time for transmission When that is the case set the transmission delay to regulate the amount of time allowed Bit 15 0 DM 6647 RS 232C port DM 6652 Peripheral port Transmission delay 4 digits BCD unit 10 ms Default No delay To reset the RS 232C port i e to restore the initial status turn ON SR 25209 To reset the peripheral port turn ON SR 25208 These bits will turn OFF auto matically after the reset 5 6 3 Host Link Communications 112 Host link communications were developed by OMRON for the purpose of con necting ID Controllers and one or more host computers by RS 232C cable and controlling ID Controller communications from the host computer Normally the host computer issues a command to a ID Controller and the ID Controller auto matically sends back a response Thus the communications are carried out with out the ID Controllers being actively involved The ID Controllers also have the ability to initiate data transmissions when direct involvement is necessary Communications Section 5 6 Communications Parameters Host Link Node Number Communications Procedure In general there are two means for implementing host link
6. Internal 43 Circuits Sra gt 45 Fe o COM to gt Fuse 26 4 5A VDC Max Switch Capacity Total 5 0 4 8 3 0 2 8 20 4 26 4 V V 5 55 External power supply voltage Ambient temperature Terminal Connections 20000000 00000000 23 System Configuration and Installation Section 2 2 Contact Outputs 16 pts Model IDSC C1DR A E Max Switching Capacity 2 A 250 VAC cos 1 2 A 250 VAC cos 0 4 2 A 24 VDC 8 A total Min Switching Capacity 10 mA 5 VDC Relay G6D 1A Service Life of Relay Electrical 300 000 operations resistive load 100 000 operations inductive load Mechanical 20 000 000 operations ON Delay 10 ms max OFF Delay 5 ms max No of Outputs 16 points 16 points common 1 circuit Internal Current Consumption 850 mA max at 5 VDC Circuit Configuration Output gt LED OUTO OUT15 Internal d oP WT Circuits Eo oli ey O COM Maximum 250 VAC 2 A 24 VDC 2 A Terminal Connections 24 System Configuration and Installation Section 2 2 2 2 6 Connectable Devices Memory Cassettes
7. 196 SR and AR Area Allocations AR Area AR 00 to AR 03 Function Not used Appendix D AR 04 08 to 15 ID Function Error code 00 Normal 01 02 Hardware error 03 ID Controller Setup error 04 ID Controller stopped during ID communications AR 05 to AR 06 Not used AR 07 00 to 11 Not used 12 DIP Switch Pin 6 Flag OFF ID Controller s DIP switch pin no 6 is OFF ON ID Controller s DIP switch pin no 6 is ON 13 to 15 Not used 00 to 03 RS 232C Communications Error Code 1 digit number 0 Normal 1 Parity error 2 Framing error 3 Overrun error 04 RS 232C Error Flag Turns ON when an RS 232C communications error occurs 05 RS 232C Transmission Enabled Flag Valid only when host link RS 232C communications are used 06 RS 232C Reception Completed Flag Valid only when RS 232C communications are used 07 RS 232C Reception Overflow Flag Valid only when RS 232C communications are used 08 to 11 Peripheral Device Error Code 1 digit number The code will be F when a computer running LSS SSS is connected to the Peripheral Port 0 Normal 1 Parity error 2 Framing error 3 Overrun error 12 Peripheral Device Error Flag Turns ON when a peripheral device communications error occurs 13 Peripheral Device Transmission Enabled Flag Valid only when host link RS 232C communications are
8. REC RESET Do not change ID Controller operating mode while the test function is being executed i e while SR 23208 is ON 37 Programming Console Operations Section 3 3 3 3 2 Reading the ID Error Log ID Error Log ID Error Statistics Log Note When the ID Controller is running in the operating mode information on various types of errors is stored in the DM area in the ID Error Log and in the ID Error Statistics Log This information can be displayed on the Programming Console as error messages The last 30 errors are displayed in order of the error log data number The numbers of ID communications errors generated are displayed by the type of error The ID Error Log and ID Error Statistics Log may or may not be stored in memory depending on ID Controller Setup ID error log information is stored in one of two ways leaving either the newest error or the first 30 errors Refer to 5 1 ID Con troller Setup for details Displaying ID Error Log Records 1 2 3 38 1 Press the Shift Key and the Monitor Key to display ID error menu 2 Press the 1 Key to display the ID communications error log B The different portions of the display are given in the following table using the data in the above example display Displayed data Meaning 05 The date that the error was generated 10 14 20 The time that an error was generated If the Memory Cassette used is not equipped with
9. Data Carrier Workpiece Worker Workpieces L LZZ PERI Data Carrier Worker Instructions The ID Controller can read work data from Data Carriers and display the results on lamp to direct line workers Part racks o o o e o o Worker Work start lamp ID Controller Read Write Head Assembly End button ID Controller Features Section 1 1 Production History Control Distribution The production history of products can be controlled in extreme detail at each process by writing assembly and inspection results together with other informa tion such as time and line workers to the Data Carriers Clock functions can be provided for time data if a clock equipped Memory Cassette is used ID Controller T Instructions for writing inspection results input panel 2 Product Data Carrier E LB seio results Worker Inspection The ID Controller can be used to distribute route to another line by destination for example articles on a conveyor In addition to distribution control with a simple mechanism like a pusher the ID Controller is also ideally suited to advanced distribution control using devices that demand complex processing by servomotors and other equipment Product ID C ntroller Data Carrier a 16 aM Servomotor controller Overall ID Controller Procedure Section 1 2 1 2 Overall ID Controller Procedure Th
10. Programming Console Operations Section 3 3 3 3 11 Checking the Program 1 2 3 Once a program has been entered or edited its syntax should be checked to be sure that no programming rules have been violated This operation checks for programming errors and displays the program ad dress and error when errors are found It is possible in PROGRAM mode only RUN MONITOR PROGRAM No No OK 1 Bring up the initial display 2 Press the SRCH Key An input prompt will appear requesting the desired check level 3 Input the desired check level 0 1 or 2 The program check will begin when the check level is input and the first error found will be displayed A Note Refer to 9 3 Programming Errors for details on check levels 4 Press the SRCH Key to continue the search The next error will be dis played Continue pressing the SRCH Key to continue the search The search will continue until an END 01 instruction or the end of Program Memory is reached A display like this will appear if the end of Program Memory is reached and END 01 is not found SRCH A display like this will appear if an END instruction is reached Note The search can be cancelled at any time by pressing the CLR Key 3 3 12 Bit Digit Word Monitor Program Read then Monitor 1 2 3 This operation is used to monitor the status of up to 16 bits and words al t
11. A All records shifted Error log record 29 Error log record 30 NewTaeoid addet 2 You can store only the first 30 ID error log records and ignore any subse quent errors beyond those 30 setting 1 3 You can disable the log so that no records are stored setting 2 to F The default setting is the first method Refer to D Error Log Settings on page 71 for details on the ID Controller Setup for the error log If a Memory Cassette without a clock is mounted the date and time will be all zeros ID Communications Section 5 3 Error records will be stored even if pin 1 on the ID Controller s DIP switch is turned ON to protect DM 6144 to DM 6655 For further details on the ID error log refer to 9 8 D Error Logs 5 3 ID Communications 1 2 3 Follow the procedures below to use the ID communication functions of the ID Controller 1 Set the parameters in the ID Controller Setup related to ID communications including the ID communications mode and the ID communication response refresh method 2 Setup the Data Carrier parameters 3 Execute the ladder diagram program containing the required ID commu nications instructions References to these are shown in the following list DC READ AUTOREAD Page 79 DC WRITE AUTOWRITE Page 80 DC CLEAR Page 82 DC MANAGE DATA Page 83 5 3 1 ID Communications Mode DM 6611 Bits 00 to 03 These settings designate whether the communications
12. If only four digits are displayed then only word S will be used Set Values for Selecting Logic and Number of Digits C Display Unit data input and output logic Same Display Unit latch input and output logic C setting data Same Different Different Same Different 8 digits 4 digits 2 blocks Same Same Different Different Same Different Note Do not set C to values other than 000 to 007 Function Bit s in O 4 digits 1 block Data output 00 to 03 Latch output O 04 Latch output 1 05 Latch output 2 06 Latch output 3 07 One Round Flag 08 Note 92 4 digits 2 blocks Output status Data and latch logic depends on C 00 to 03 04 to 07 Note 0 to 3 Data output for word S 08 4 to 7 Data output for word S 1 09 10 11 12 123 45 6 7 8 9 1011 121 12 cycles required to complete one round SR 25409 will turn ON while 7SEG is being executed 1 Do not use 7SEG more than once within the same program 2 Consider the cycle time and the characteristics of the 7 segment display when designing the system 3 Output bits not used here can be used as ordinary output bits With this instruction 4 digits or 8 digits are displayed in 12 cycles Operation will proceed from the first execution without regard to the status prior to exe
13. IR 20000 to IR 22915 IR 24000 to IR 24315 ID Controller area 16 bits read write SR 23200 to SR 23215 SR 232 to SR 232 112 bits read only SR 23300 to SR 23915 SR 233 to SR 239 MACRO operand bits Inputs 64 bits Outputs 64 bits IR 09600 to IR 09915 IR 096 to IR 099 IR 19600 to IR 19915 IR 196 to IR 199 Internal high speed counter 32 bits IR 23000 to IR 23115 IR 230 to IR 231 Special bits SR area 192 bits SR 24400 to SR 25515 SR 244 to SR 255 Temporary bits TR area 8 bits TRO to TR7 Holding bits HR area 1 600 bits HR 0000 to HR 9915 HR 00 to HR 99 Auxiliary bits AR area 448 bits AR 0000 to AR 2715 AR 00 to AR 27 Link bits LR area 1 024 bits LR 0000 to LR 6315 LR 00 to LR 63 Timers counters 512 timers counters TIM CNT 000 to TIM CNT 511 Interrupt refreshing for TIM 000 to TIM 015 high speed timer only Interval timers O to 2 interval timer 2 is used with high speed counter DM area 6 144 words read write DM 0000 to DM 6143 512 words read only DM 6144 to DM 6655 Interrupt processing External interrupts 4 Scheduled interrupts 3 one of which can be used as a high speed counter interrupt and one of which can be used as pulse output ID communications response interrupt 1 executes subroutines 004 to 009 at end of ID communications instructions Memory protection
14. N Caution Do not pull on the rubber molding The Read Write Head connector cable cannot be removed by pulling out on the rubber molding you must hold onto the sliding ring If you pull on the rubber molding you may damage the connector or break connections inside the cable Note Refer to the following manuals for details on installing Read Write Heads and Data Carriers V600 FA ID Sensor Serial Interface Operation Manual Z44 E 1 2 and V600 FA ID Sensor Parallel Interface Operation Manual Z45 E1 2 31 SECTION 3 Programming Device Operations This section describes the Programming Console Ladder Support Software LSS Operations and SYSMAC Support Soft ware SSS Operations used with an ID Controller System 3 1 Applicable Programming Devices sseeeeeeee eh 34 3 2 Programming Console Preparations 0 0 cece es 34 3 3 Programming Console Operations 00 cece ce es 37 3 3 Testing ID Communications 0 0 0 2 I 37 3 3 2 Reading the ID Error Log 0 ee eee 38 323 3 Clearing Memory clic hse ku ba eS ae ae Mae DN ERAS 39 3 3 4 Reading Clearing Error Messages 0 00 0 eee eee eee eee ee 40 3 3 5 BuzzerOper tion oen GERChORedd e en oe Pe a 41 3 3 6 Reading and Changing Expansion Instructions 00 41 3 3 7 Reading and Changing the Clock 0 0 0 eee 42 3 3 8 Setting and Reading a Program Memory Address 000
15. 2 When accessing a PV TC numbers are used as word data when accessing Completion Flags they are used as bit data Data Area Functions Section 4 2 4 2 Data Area Functions IR Area Note Work Bit Area SR Area TR Area HR Area The functions of the various data areas are explained below IR area bits are allocated to I O terminals They reflect the ON OFF status of in put and output signals Input bits run from IR 00000 to IR 00015 and output bits run from IR 10000 to IR 10015 Input bits cannot be used in output instructions Do not use the same output bit in more than one OUT and or OUT NOT instruction or the program will not execute properly Any of the bits between IR 001 and IR 229 and IR 240 to IR 243 not used for specific functions can be used as work bits The work bits can be used freely within the program They can only be used with in the program however and not for direct external I O Work bits are reset i e turned OFF when the ID Controller power supply is turned off or when operation begins or stops The bits in the ranges shown below have specific functions but can still be used as work bits when their specific functions are not being used Range Function IR 096 to IR 099 When the MACRO instruction is used these bits serve as op erand input bits IR 196 to IR 199 When the MACRO instruction is used these bits serve as op erand output bits IR 230 to IR 231 When high
16. 23302 23306 The content of control data 2 is not BCD or is out of range The content of control data 1 is out of range Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded SR 23200 ID Ready Flag was OFF or another ID communications instruction was being executed OFF while instruction is being executed ON when executed has been completed OFF while instruction is being executed ON when executed has been completed ON when an error has occurred in ID communications ON when the end of the service life of the Data Carrier battery has been detected 23308 to 23313 Indicate error type with 23302 is ON Refer to pages 83 to 85 for examples 139 Basic Instructions Section 6 4 6 4 Basic Instructions 6 4 1 LOAD LOAD NOT AND AND NOT OR and OR NOT Ladder Symbols Operand Data Areas LOAD LD LOAD NOT LD NOT AND AND AND NOT AND NOT OR OR OR NOT OR NOT Description Precautions Flags 140 B B Bit IR SR AR HR TC LR TR Key Sequence LD bit_address WRITE B Bit i IR SR AR HR TC LR Key Sequence LD NOT bit_address WRITE B B Bit IR SR AR HR TC LR Key Sequence AND bit address WRITE B Bit t IR SR AR HR TC LR Key Sequence AND NOT bit_address WRITE B Bit IR SR AR HR TC LR Key Sequence OR bit_address WRITE B Bit IR SR AR HR TC LR iL Key Seq
17. An industry standard for serial communications The operating mode used by the ID Controller for normal control operations See instruction line The process used to execute a ladder diagram program The program is ex amined sequentially from start to finish and each instruction is executed in turn based on execution conditions See cycle time An interrupt that is automatically generated by the system at a specific time or program location specified by the operator Scheduled interrupts result in the ex ecution of specific subroutines that can be used for instructions that must be ex ecuted repeatedly at a specified interval of time A process whereby the system checks its own operation and generates a warn ing or error if an abnormality is discovered A bit that is programmed to maintain either an OFF or ON status until set or reset by specified conditions A wiring method in which devices are wired consecutively in a string The process whereby the ID Controller checks an interface or other connection to see if special processing is required The process of turning a bit or signal ON The value from which a decrementing counter starts counting down or to which an incrementing counter counts up i e the maximum count or the time from which or for which a timer starts timing Set value is abbreviated SV An input signal whose OFF to ON transition causes data to be shifted one bit One or more words in which data is sh
18. SR 233 0000 SR 234 FFFF When ID communications have been completed the ID Ready Flag SR 23300 will turn ON again enabling execution of ID communications instructions If the Flag Reset Bit SR 23201 is ON when ID communications are completed the content of SR 233 and SR 234 will be refreshed normally once and then their content will be reset during the next overseeing processing stage The following timing chart illustrates the operation of the ID Controller Bits and Flags Scan time LI LI CPU processing Program Program Program Program execution execution execution execution ID communications instruction executed ID communications instruction executed ID Ready Flag SR 23300 ID Completed Flag SR 23301 Error A AA ID Comm Error Noemor iiec T Flag SR 23302 Error 2 2 IA Warning Flags L Noemor y PA SR 23306 07 Error LE o ed 5 Error Flags Noemor _____ S SR 23308 to SR 23315 4 3 2 Autoread Write Flags The ID Ready Flag SR 23300 will turn OFF when the AUTOREAD IDAR or AUTOWRITE IDAW instruction is executed If the Data Carrier cannot be de tected within a specified period of time i e if the ID Ready Flag does not come ON for a specified period of time the Autoread Write Cancel Bit SR 23200 can be turned ON to cancel the read write instruction The status of the ID Controller Flags will be as follows after the instruction has been cancell
19. HR AR and DM area contents counter values and clock RTC values maintained during power interruptions Memory backup Battery life is 5 years regardless of presence or absence of clock RTC Backup time varies with ambient temperature If BAT ERR indicator lights replace the battery with a new one within 1 week Connect new battery within 5 min of removing battery Self diagnostic functions CPU failure watchdog timer I O bus error memory failure battery error host link error and ID function errors Program checks No END instruction programming errors continuously checked during operation ID functions 192 One ID sensor Read Write Head interface electromagnetically coupling Appendix C Dimensions The overall dimensions of the ID Controller are 219 x 110 x 107 mm WxHxD 107 193 SR Area 01 to 15 Appendix D SR and AR Area Allocations Function Input Interrupt 0 Counter Mode SV SV when input interrupt O is used in counter mode 4 digits hexadecimal 0000 to FFFF Can be used as work bits when input interrupt O is not used in counter mode 01 to 15 Input Interrupt 1 Counter Mode SV SV when input interrupt 1 is used in counter mode 4 digits hexadecimal 0000 to FFFF Can be used as work bits when input interrupt 1 is not used in counter mode 01 to 15 Input Interrupt 2 Counter Mode SV SV when input interrupt 2 is used in counter mode 4 digits hexadecim
20. ID Controller indicators provide visual information on the general operation of the ID Controller Although not substitutes for proper error programming using the flags and other error indicators provided in the data areas of memory these indicators provide ready confirmation of proper operation ID Controller indica tors are shown below and are described in the following table RUN indicator Green ID function indicators RDY ERR T R RUN EET Output status indicators ERR ALM OUT INH 3 Error alarm COMI 7 Input status indicators indicator Red come m 12131415 8910112191415 Output inhibited indicator Orange Peripheral port indicator COM1 Orange RS 232C port indicator COM2 Orange Indicator Function RUN RUN indicator Lights when the ID Controller is operating Green normally ERR ALM Error Alarm indicator Flashes when there is a non fatal error Red The ID Controller will continue operating Lit when there is a fatal error When this indicator lights the RUN indicator will go off ID Controller operation will be stopped and all outputs will be turned OFF COM1 Peripheral port indicator Flashes then the ID Controller is Orange communicating with another device via the peripheral port COM2 RS 232C port indicator Flashes when the ID Controller i
21. S NPUT SEND OK Y or N B 110 F B Y THEN GOTO 130 ELSE GOTO KEYIN 120 SS STS 130 PRINT 1 S Sends command to ID Controller 140 INPUT 1 R Receives response from ID Controller 150 PRINT RECV DATA R 160 F MIDS R 4 2 EX THEN GOTO 210 Identifies command 170 F RIGHTS R 1 lt gt gt k THEN S GOTO 130 180 GOTO XKEYIN 190 CLOSE 1 200 END 210 PRINT EXCEPTION DATA 220 GOTO 140 The data received by the computer will be as shown below FCS is 59 00EX1234123412341234123459 gt kCR 5 6 4 RS 232C Communications 114 This section explains RS 232C communications By using RS 232C commu nications the data can be printed out by a printer or read by a bar code reader Handshaking is not supported for RS 232C communications Communications Section 5 6 Communications Parameters Communications parameters such as the communication conditions mode start code end code data received etc Set the ID Controller Setup for RS 232C communications i e set bits 12 to 15 of DM 6645 or DM 6650 to 1 when communicating via RS 232C standards Always set the same parameters as the other parties in the communications are using RS 232C Start and End Start and end codes or the amount of data to be received can be set as shown in Codes and Data Received
22. input bit input device input point input signal instruction instruction block 208 The delay in time from when a signal is sent to an output to when the status of the output is actually in effect or the delay in time from when the status of an input changes until the signal indicating the change in the status is received A device connected to the I O terminals I O devices may be either part of the Control System if they function to help control other devices or they may be part of the controlled system An interrupt generated by a signal from I O The place at which an input signal enters the ID Controller System or at which an output signal leaves the ID Controller System In physical terms I O points correspond to terminals or connector pins on the ID Controller in terms of pro gramming an I O points correspond to I O bits in the IR area The process of updating output status sent to external devices so that it agrees with the status of output bits held in memory and of updating input bits in memory so that they agree with the status of inputs from external devices The time required for an output signal to be sent from the ID Controller in re sponse to an input signal received from an external device A word in the IR area that is allocated in the ID Controller System and is used to hold I O status A computer that has similar architecture to that is logically compatible with and that can run software desig
23. F0032767 to 00032767 00000000 to 00065535 To specify a negative number set F in the leftmost digit This example shows a program for using the high speed counter in the Incre menting Mode making comparisons by means of the target matching method and changing the frequency of pulse outputs according to the counter s PV Be fore executing the program set the ID Controller Setup as follows DM 6642 0114 high speed counter used with software reset and Incrementing Mode For all other ID Controller Setup use the default settings Inputs are not refreshed at the time of interrupt processing and pulse outputs are executed for IR 100 109 Communications Section 5 6 25315 ON for 1 scan 25313 Always ON 25313 Always ON In addition the following data is stored for the comparison table DM 0000 DM 0001 DM 0002 DM 0003 DM 0004 DM 0005 DM 0006 0002 1000 0000 0101 2000 0000 0102 Number of comparison conditions 2 Target value 1 1000 Comparison 1 interrupt processing routine no 101 Target value 1 2000 Comparison 2 interrupt processing routine no 102 Saves the comparison table in target matching format and begins comparing Begins continuous pulse output to IR10002 at 500 Hz When the high speed counter value reaches 1000 subroutine 101 is called and the frequency of the pulse output is changed to 200 Hz When the high speed counter value reaches 2000 subroutine 102 is cal
24. IDSC C1DR C1DT A E ID Controller USER S MANUAL OMRON IDSC C1DR C1DT A E ID Controller User s Manual Revised December 2004 Notice OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual The following conventions are used to indicate and classify precautions in this manual Always heed the information provided with them Failure to heed precautions can result in injury to people or dam age to the product NDANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury NWARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury N Caution Indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury or property damage OMRON Product References All OMRON products are capitalized in this manual The word Unit is also capitalized when it refers to an OMRON product regardless of whether or not it appears in the proper name of the product The abbreviation Ch which appears in some displays and on some OMRON products often means word and is abbreviated Wd in documentation in this sense The abbreviation PC means Programmable Controller and is not used as an abbreviation for any thing else Visual Aids The following headings appear in th
25. Reading OK Changing o OK OK Reading the Clock Follow the procedure below to read the clock 1 2 3 1 Bring up the initial display 2 Press the FUN SHIFT and then the MONTR Key The current clock setting will be displayed Changing the Clock Follow the procedure below to change the clock setting The clock setting cannot be changed in RUN mode 1 2 3 1 Follow the procedure above to display the current clock setting 2 Press the CHG Key The following display will appear 42 Programming Console Operations Section 3 3 3 Use the Up and Down Cursor Keys to move the cursor to the unit that will be changed In this case the day of the week is being changed 4 Input the new value and press the WRITE Key The new setting will appear on the display D 1 Note The days of the week correspond to the following numbers Sun 0 Mon 1 Tue 2 Wed 3 Thu 4 Fri 5 and Sat 6 3 3 8 Setting and Reading a Program Memory Address This operation is used to display the specified program memory address and is possible in any mode RUN MONITOR PROGRAM When inputting a program for the first time it is generally written to Program Memory starting from address 00000 Because this address appears when the display is cleared it is not necessary to specify it When inputting a program starting from other than 00000 or to read or modify a program that alr
26. Write Protected Error Flag 7D A write was specified for a protected area Release the memory protection or change the write address SR 23310 DC Communications Error Flag 70 An error occurred in communications with the Data Carrier Check for noise check the Data Carrier speed and check installation distances SR 23311 Address Error Flag 7A An illegal address was specified Check the address setting to be sure it is within range If IDMD 66 is being executed check address according to instruction specifications SR 23312 Verification Error Flag 71 A write or read operation was not completed normally Check for noise SR 23313 No Head Error Flag 7C A Read Write Head is not connected Connect a Read Write Head ID Communications Warnings The following flags will turn ON to indicate various warnings even when ID com munications have been completed normally These errors are not recorded in the ID Controller SR 23306 DC Battery Warning Flag The voltage of the battery built into the Data Carrier is low indicating the battery has passed its service life Replace the Data Carrier battery or if the battery is not replaceable replace the Data Carrier SR 23307 ID Check Warning Flag An error is detected for the IDMD 66 ID CHECK instruction If write count management was being used either change the write area or replac
27. agement 0041 to 0043 is incremented When the value in addresses 0041 to 0043 exceeds 100 000 the ID Check Warning Flag SR 23307 will turn ON 00000 23300 00100 23300 ID Controller Data Carrier FF p 0040 FF Data written from ID Controller 0041 Leftmost digit Write count management area three bytes 0042 Middle digit 0043 Rightmost digit ID Communications Section 5 3 Example Check Code Verification DMO0010 DMO0011 Data starting at DM 0010 is written starting at Data Carrier address 0040 IDMD 66 is executed to calculate the check code for data starting at DC ad dress 0040 check for 4 bytes written plus 2 bytes for check code and write the check code to the specified words IDMD 66 is then executed again to verify the check code for the 6 bytes starting at 0040 and the last instruction will be executed no errors occur Data is read starting from Data Carrier address 0040 and written to DM 0020 00000 23300 00100 23300 00001 23300 00101 23300 HA ee Ses ede ID Controller Data Carrier 1234 0040 12 Data written from ID Controller 5678 0041 34 four bytes 0042 56 0043 78 0043 Leftmost digit Check code area two bytes 0044 Rightmost digit 5 3 12 Interrupt Refresh Program Example Data returned for ID communications respon
28. 10 ms setting 0 1 ms 100 ms setting 1 ms 1 s set ting 10 ms 00 to 15 Current Cycle Time 4 digits BCD The most recent cycle time during operation is stored The Current Cycle Time is not cleared when operation stops The unit can be any of the following depending on the setting of the 9F monitoring time DM 6618 Default 0 1 ms 10 ms setting 0 1 ms 100 ms setting 1 ms 1 s set ting 10 ms 200 Appendix E Extended ASCII The following codes are used to output characters to the Programming Console using MSG 46 Left digit 7 A 0 1 2 3 4 5 6 7 8 9 A B C D E F 201 DM 1 1 link address AND area area prefix arithmetic shift ASCII AR Area basic instruction baud rate BCD binary binary coded decimal bit bit address block bus byte call Glossary Indirectly addressed DM area See indirect address and DM area A link created between two ID Controllers to create common data in their LR areas A number used to identify the location of data or programming instructions in memory A logic operation whereby the result is true if and only if both premises are true In ladder diagram programming the premises are usually ON OFF states of bits or the logical combination of such states called execution conditions See data area and m
29. 109 102 10 10 Di 0201 Digit 1 in S Transfer 1 digit Move to digit 2 in D 168 16 16 169 DM S 0000 7 A B X 163 162 16 169 D DM 0003 B 148 Selected Special Instructions Section 6 5 6 5 5 BLOCK TRANSFER XFER 70 Operand Data Areas Ladder Symbols N Number of words BCD IR SR AR DM HR TC LR XFER 70 Q XFER 70 S Starting source word IR SR AR DM HR TC LR D Starting destination word IR SR AR DM HR TC LR Description When the execution condition is OFF XFER 70 is not executed When the exe cution condition is ON XFER 70 copies the contents of S S 1 S N to D D 1 D N XFER 70 can thus be used to shift data in memory S D 3 4 5 2 A 3 4 5 2 S 1 D 1 34 5 1 3 4 5 1 S 2 D 2 3 4 2 2 i 3 4 2 2 S N D N 6 14 5 2 614 512 Precautions S and S N must be in the same data area as must D and D N DM 6144 to DM 6655 cannot be used for D Flags ER N is not BCD S and S N or D and D N are not in the same data area Indirectly addressed DM word is non existent Content of x DM word is not BCD or the DM area boundary has been exceeded Example In the following example XFER 70
30. 37 preparations for operation 34 reading error logs 38 testing ID communications 35 programming devices 25 34 programs checking 173 entering and editing 45 protection EEPROM 14 memory 10 R Read Write Heads connecting 31 connector 10 list 25 rightmost definition 127 RS 232C port communications 114 115 116 118 connecting Units 118 control bits 116 selecting See host link settings 64 66 RS 232C port 10 communications 10 connectable devices 26 indicator 11 one to one link 27 specifications 27 28 wiring example 27 RUN mode description 12 Index S scan time affects on operations 164 calculating 163 processes 163 settings basic operations 69 70 71 changing 68 communications 110 111 112 defaults 64 68 DSW 71 T O operations 69 70 interrupts 94 96 97 SPED 71 setup See settings specifications 191 basic 15 contact outputs 24 I O 21 inputs 21 transistor outputs 23 SR Area allocations 195 SSS connection 25 models 25 startup settings 64 static electricity preventing 16 status monitoring 47 subroutines ID communications instructions 73 switch input digital 89 switches DIP See DIP switch syntax checking the program 47 SYSMAC Support Software See SSS system configuration 15 example 2 T ten key inputting 86 terminal blocks removal 18 wiring 30 time reading and changing 42
31. 43 3 3 9 Inserting and Deleting Instructions 44 3 3 10 Entering or Editing Programs 0 0 00 eee ee 45 3 3 11 Checking the Program 0 0 eee cece 47 3 3 12 Bit Digit Word Monitor 0 eee hh 47 3 3 13 Hex ASCII Display Change 0 0 00 cece eee 49 3 3 14 Displaying the Cycle Time 0 0 2 eee eee eee 49 3 3 I5 Force Set Reset obl Lee Ga Ge GSS A S TS ce Ee RS 49 3 3 16 Clear Force Set Reset coccion Ma sees ged eee ae 50 3 3 17 Binary Monitor airada eta Rec ERU ht RR REUS Pee 50 3 3 18 Hexadecimal BCD Data Modification oooooocoooooooomoooooo 51 3 3 19 Binary Data Modification 0 0 0 cee eee 51 3 4 LSS Operations co De edo A RE UP P Ete den 52 3 5 SSS Operations p i O REC EE ERR RR Sales ee aie se M 53 33 Programming Console Preparations Section3 2 3 1 Applicable Programming Devices Programming Consoles Ladder Support Software The following Programming Devices can be used with an ID Controller System CQM1 PRO01 E or C200H PRO27 E Version 3 or later running on an IBM PC AT or compatible C500 SF312 EV3 on 3 5 floppy disks C500 SF711 EV3 on 5 floppy disks Note Be sure to perform the operations listed in 3 4 LSS Operations before using the LSS or 3 5 SSS Operations before using the SSS for an ID Controller 3 2 Programming Console Preparations Key Sequences Initial Display Components and Functions This and the f
32. Battery Set Read Write Heads and Data Carriers Programming Devices Capacity CQM1 MEOAK 4K words CQM1 ME04R CQM1 ME08K 8K words CQM1 ME08R EPROM socket only Name CQM1 MPO8K 8K words CQM1 MP08R Model Battery Set Read Write Head gt EX 3G2A9 BATO8 Comments V600 HO7 30 5 m max V600 H11 H51 H52 50 5 m max Data Carrier V600 D Built in lithium battery V600 D No battery Note Not all combinations of Data Carrier and Read Write Head are possible Refer to the following manuals for details V600 FA ID Sensor Serial Interface Operation Manual Z44 E1 2 and V600 FA ID Sensor Parallel Interface Operation Manual Z45 E1 2 The ID Controller can be programmed and operated either from an IBM PC AT or compatible running the LSS SSS or from a Programming Console Connect the computer using the illustrated cables The computer must run the Ladder Support Software LSS version 3 or later on 3 5 floppy disks C500 SF312 EV3 on 5 floppy disks C500 SF711 EV3 or SYSMAC Support Software SSS C500 ZL3AT1 E RS 232C connector RS 232C connector e CQM1 CIF02 Connecting Cable Peripheral port RS 232C cable provided by user RS 232C port 25 System Configuration and Installation Section 2 2 26 Connect the Programming Console using
33. Do not use SR 234 Read only 00 to 07 Error Code 70 to 7D ID communications in progress FFFF 08 to 11 Instruction Code Normal end Instruction code 00 1to6 Error end Instruction code error code 12 to 15 Reserved Do not use SR 235 to SR 239 00 to 15 60 Reserved Do not use Note When the Flag Reset Bit SR 23201 is turned ON all flags in SR 233 except the ID Ready Flag SR 23300 will turn OFF and the Error Code and Instruction Code in SR 234 will be cleared ID Controller Area Section 4 3 4 3 1 ID Flags Timing Note ID Controller Bits in SR 232 are refreshed once each scan during overseeing processing The setting for the refresh method in DM 6611 bits O3 to 07 does not affect the refreshing of these flags ID Controller Flags and Data in SR 233 and SR 234 are refreshed according to the setting for the refresh method in DM 6611 bits 03 to 07 and can be set either for cyclic or interrupt processing Cyclic processing refreshes memory only once each scan Interrupt processing causes an interrupt to be generated when ID communications have been com pleted refreshing SR 233 and SR 234 immediately after communications If the Error Flag SR 25503 is not ON the contents of SR 233 and SR 234 will be as shown below immediately after an ID communications instruction has been issued prevent other ID communications instructions from being executed
34. OFF the designated bit for an ON execution condition 141 Basic Instructions Section 6 4 Precautions Flags OUT and OUT NOT can be used to control execution by turning ON and OFF bits that are assigned to conditions on the ladder diagram thus determining execu tion conditions for other instructions This is particularly helpful and allows a complex set of conditions to be used to control the status of a single work bit and then that work bit can be used to control other instructions The length of time that a bit is ON or OFF can be controlled by combining the OUT or OUT NOT with TIM Any output bit can generally be used in only one instruction that controls its sta tus There are no flags affected by these instructions 6 4 4 SET and RESET SET and RSET Description Precautions Flags 6 4 5 TIMER TIM 142 Ladder Symbols Operand Data Areas SET B B Bit IR SR AR HR LR Key Sequence FUN SET Bit address WRITE RSET B BEDIL IR SR AR HR LR Key Sequence FUN RESET Bit_address WRITE SET turns the operand bit ON when the execution condition is ON and does not affect the status of the operand bit when the execution condition is OFF RSET turns the operand bit OFF when the execution condition is ON and does not af fect the status of the operand bit when the execution condition is OFF The operation of SET differs from that of OUT because the OUT instruction turns the operand bit OFF when its exe
35. Press the CLR Key to end monitoring CLR Word Monitor Follow the procedure below to monitor the status of a particular word 1 2 3 1 Bring up the initial display 2 Input the word address of the desired word B Es Note a If the ID Controller is in PROGRAM or MONITOR mode the dis played word s status can be changed using the Hexadecimal BCD Data Modification operation Refer to page 51 for details b The status of SR 25503 to SR 25507 and TR 00 to TR 07 cannot be monitored 3 Press the MONTR Key to begin monitoring IMONTR The Up or Down Cursor Key can be pressed to display the status of the pre vious or next word 4 Press the CLR Key to end monitoring 48 Programming Console Operations Section 3 3 3 3 13 Hex ASCII Display Change This operation is used to convert word data displays back and forth between 4 digit hexadecimal data and ASCII It is possible in any mode RUN MONITOR PROGRAM 1 2 3 1 Monitor the status of the desired word according to the procedure described in 3 3 12 Bit Digit Word Monitor If two or more words are being monitored the desired word should be leftmost on the display 2 Press the TR Key to switch to ASCII display The display will toggle between hexadecimal and ASCII displays each time the TR Key is pressed i 3 3 14 Displaying the Cycle Time This operation is used to display th
36. and turn on the power again NO END INST END 01 is not written anywhere in program Write END 01 at the final address of the program 1 0 BUS ERR 176 An error has occurred during data transfer between the CPU and I O Determine the location of the problem using flags AR 2408 to AR 2415 turn the power off check for loose I O connections or end covers and turn on the power again ID Indicators sss Section9 6 Message FALS Meaning and appropriate response SYS FAIL FALS 01 to 99 An FALS 07 instruction has been executed in the program Check the FALS number see note to determine the conditions that would cause execution correct the cause and clear the error The cycle time has exceeded the FALS 9F Cycle Time Monitoring Time DM 6618 Check the cycle time and adjust the Cycle Time Monitoring Time if necessary 9 6 ID Indicators There are two kinds of ID errors non fatal communications errors and fa tal ID functions will continue after a non fatal error occurs but ID functions will be stopped if a fatal error occurs ID Controller program execution and other operation will continue even for fatal ID errors N Caution Investigate all errors whether fatal or not Remove the cause of the error as Soon as possible and restart the ID Controller After removing the cause of the error restart the ID Controller or clear the error from the Programming Console or from other Programming De
37. copies the contents of IR 0001 through IR 0003 to DM 0010 through DM 0012 when IR 00000 is ON 00000 Address Instruction Operands 00000 XFER 70 0003 ES 001 DM 0010 IR 0001 1234 DMO0010 1234 N 0003 IR 0002 0000 DMoo11 0000 IR 0003 FFFF DM0012 FFFF 149 Selected Special Instructions Section 6 5 6 5 6 RECEIVE RXD 47 Ladder Symbols Operand Data Areas D First destination word IR SR AR DM HR TC LR ESA A E ay Sy IR SR AR DM HR TC LR Description When the execution condition is OFF RXD 47 is not executed When the exe cution condition is ON RXD 47 reads N bytes of data received at the port speci fied in the control data and then writes that data in words D to D N 2 1 Up to 256 bytes of data can be read at one time If fewer than N bytes are received the amount received will be read Communications parameters are controlled in part through the ID Controller Setup Refer to page 110 for details N Caution The ID Controller will be incapable of receiving more data once 256 bytes have been received if received data is not read using RXD 47 Read data as soon as possible after the Reception Completed Flag is turned ON AR 0806 for the RS 232C port AR 0814 for the peripheral port Control Data The value of the control data determines the port from which data will be read and the order in w
38. displays to direct line workers Work start lamp A Part racks ly o o o le o o Worker ID Controller Lamp control signals Workpiece Read Write Head Assembly End button Section 7 2 A lamp display based on data stored in the Data Carrier directs line workers on which part to use If a line worker presses the work completed button at the end of a job the pro cess shifts to the next process Necessary and unnecessary data for each individual part here 6D is written in bit units to address 0010 Lamp displays are triggered by data that is read The display turns off when the work completed switch is pressed IDRD 61 0010 0001 DM 0000 MOVD 83 DM 0000 0113 DIFU 13 dress 0010 output word IR 100 15000 Lit work lamp until the work completed Work started signal is input Read 1 byte of data from Data Carrier ad Move rightmost bits of data read above to 157 Managing Production Histories Section 7 3 7 3 Managing Production Histories Process Data Carrier Data Program Processing signal IDWT activation HA ID Ready Flag 158 The production history of products can be controlled in extreme detail at each process by writing assembly and inspection results together with other informa tion such as time and line workers to the Data Carrier Clock functions can be provided for time
39. gt 2 RD RD 3 3 SD RS 4 4 DTR CS 5 5 SG 6 6 DSR 7 7 RS 2 8 E 8 CS SG 9 9 zx Shielded cable One to one Link Connections The RS 232C port can be connected to the same port on another ID Controller to create a data link Wire the cable as shown in the diagram below ID Controller ID Controller Signal Pin Pin Signal Abb No No Abb FG 1 D 1 FG SD 2 2 SD RD 3 lese A o 3 RD RS 4 4 RS CS 5 5 CS 6 6 7 7 8 8 SG 9 9 SG Ne A Ground the FG terminals of ID Controller at a resistance of less than 100 27 Installing the ID Controller Section2 3 2 3 Applicable Connectors The following connectors are applicable One plug and one hood are included with the ID Controller Plug XM2A 0901 OMRON or equivalent Hood XM2S 0901 OMRON or equivalent Port Specifications Item Specification Communications method Half duplex Sync Start stop Baud rate 1 200 2 400 4 800 9 600 or 19 200 bps Transmission method Point to point Transmission distance 15 m max Interface EIA RS 232C Installing the ID Controller 2 3 1 Mounting the ID Controller 28 An ID Controller must be installed on DIN Track and secured with the DIN Track Brackets shown below DIN Track DIN Track Brackets PFP M PFP 50N or PFP 100N Use the foll
40. instruction TC 000 through TC 015 should not be used in TIM if they are required for TIMH 15 Refer to the CQM1 Programming Manual for details Timers in interlocked program sections are reset when the execution condition for IL 02 is OFF Power interruptions also reset timers If a timer that is not reset under these conditions is desired SR area clock pulse bits can be counted to produce timers using CNT Refer to 6 4 6 COUNTER CNT for details Flags ER SV is not in BCD Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded 6 4 6 COUNTER CNT Definer Values Ladder Symbol p Niena 7 m 000 through 511 CNTN R sv Operand Data Areas SV Set value word BCD IR SR AR DM HR LR Key Sequence CNT Counter_number WRITE Set_value WRITE Description CNT is used to count down from SV when the execution condition on the count pulse CP goes from OFF to ON i e the present value PV will be decre mented by one whenever CNT is executed with an ON execution condition for CP and the execution condition was OFF for the last execution If the execution condition has not changed or has changed from ON to OFF the PV of CNT will not be changed The Completion Flag for a counter is turned ON when the PV reaches zero and will remain ON until the counter is reset CNT is reset with a reset input R When R goes from OFF to ON the PV is reset to
41. such as converting and or transferring large blocks of data A group of instructions that is logically related in a ladder diagram program A logic block includes all of the instruction lines that interconnect with each other SS e instruction execution time instruction line interface interrupt signal interrupt program inverse condition JIS jump jump number ladder diagram program ladder diagram symbol ladder instruction Ladder Support Software least significant bit word LED leftmost bit word link logic block logic block instruction from one or more line connecting to the left bus bar to one or more right hand instructions connecting to the right bus bar The time required to execute an instruction The execution time for any one in struction can vary with the execution conditions for the instruction and the oper ands used in it A group of conditions that lie together on the same horizontal line of a ladder dia gram Instruction lines can branch apart or join together to form instruction blocks Also called a rung An interface is the conceptual boundary between systems or devices and usual ly involves changes in the way the communicated data is represented Interface devices perform operations like changing the coding format or speed of the data A signal that stops normal program execution and causes a subroutine to be run or other processing to take place A pro
42. third 132 75 Words for all three operands 212 75 gt KDM for all three operands 64 IDAW 134 75 Constants for first two operands word for third Reading one byte normal order 146 75 Words for all three operands Reading one byte normal order 149 75 Words for all three operands Reading one byte reversing order 213 75 gt KDM for all three operands Reading one byte normal order 145 75 Constants for first two operands word for third Reading ten bytes normal order 156 75 Words for all three operands Reading ten bytes normal order 160 75 Words for all three operands Reading ten bytes reversing order 224 75 KDM for all three operands Reading ten bytes normal order 456 75 Constants for first two operands word for third Reading 256 bytes normal order 458 75 Words for all three operands Reading 256 bytes normal order 536 75 Words for all three operands Reading 256 bytes reversing order 550 75 DM for all three operands Reading 256 bytes normal order 166 Execution Times for ID Communications Section 8 3 Mnemonic Execution Conditions time us minimum times first maximum last 65 IDCA 118 75 Constant for all three operands Clearing part of memory 124 75 Words for all three operands Clearing part of memory 202 75 gt KDM for all three operands Clearing part of memory 115 75 Constant for a
43. through an interface to input points O through 3 When using a 8 digit input connect DO through D7 from the digital switch through an interface to input points O through 7 The output terminals O to 4 are connected to the CS RD and similar terminals In either case output point 5 will be turned ON when one round of data is read but there is no need to connect output point 5 unless required for the application When using DSW make the following setting in the ID Controller Setup in PROGRAM mode before executing the program Digital Switch Settings ID Controller Setup Bit 15 0 T T DM6639 a L Number of digits to read 00 4 digits 01 8 digits Default 4 digits Do not make any changes to bits 0 to 7 They are not related to DSW 89 Advanced I O Instructions Section 5 4 Using the Instruction DSW IW Input word OW Output word TR R First register word If the input word for connecting the digital switch is specified at for IW and the output word is specified for OW then operation will proceed as shown below when the program is executed IW Four digits 00 to 03 Y 100 101 102 103 Input data y Leftmost Rightmost 4 digits 4 digits Eight digits 00 to 03 04 to 07 Wd 0 Ly D H D 00 When only 4 digits are read 01 only word D is used CS signal 02 g 03 04 E EA A pm RD read signal 9 ES 1 Round Flag
44. timers conditions when reset 143 creating 142 143 timing instruction execution See instruction scan time 163 transfers program 52 53 troubleshooting 181 U UM See also Program Memory protecting 10 W weight 191 wiring AC power supply 30 precautions 18 Words definition 127 write protection 76 setting 76 77 221 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No W250 E1 02 Revision code The following table outlines the changes made to the manual during each revision Page numbers refer to the previous version Revision code Das Revised content February 1995 Original production December 2004 Page 25 Model numbers of Read Write Heads changed Page 30 Terminal Block rewritten and added as Wiring Precautions for Ground Wires 223 OMRON Corporation FA Systems Division H Q 66 Matsumoto Mishima city Shizuoka 411 8511 Japan Tel 81 55 977 9181 Fax 81 55 977 9045 Regional Headquarters OMRON EUROPE B V Wegalaan 67 69 NL 2132 JD Hoofddorp The Netherlands Tel 31 2356 81 300 Fax 31 2356 81 388 OMRON ELECTRONICS LLC 1 East Commerce Drive Schaumburg IL 60173 U S A Tel 1 847 843 7900 Fax 1 847 843 8568 OMRON ASIA PACIFIC PTE LTD 83 Clemenceau Avenue 3111 01 UE Square Singapore 239920 Tel 65 6835 3011 Fax 65 6835 2711 omnon Au
45. 0 Host link 1 RS 232C DM 6651 00 to 07 Baud rate 00 1 2K 01 2 4K 02 4 8K 03 9 6K 04 19 2K 08 to 15 Frame format Start Length Stop 00 1 bit 7 bits 1 bit 01 1 bit 7 bits 1 bit 1 bit 7 bits 1 bit 1 bit 7 bits 2 bit 1 bit 7 bits 2 bit 1 bit 7 bits 2 bit 1 bit 8 bits 1 bit 1 bit 8 bits 1 bit 1 bit 8 bits 1 bit 1 bit 8 bits 2 bit 1 bit 8 bits 2 bit 1 bit 8 bits 2 bit DM 6652 00 to 15 Transmission delay Host Link 0000 to 9999 In ms DM 6653 00 to 07 Node number Host link 00 to 31 BCD default 00 08 to 11 Start code enable RS 232C 0 Disable 1 Set 12 to 15 End code enable RS 232C 0 Disable number of bytes received 1 Set specified end code 2 CR LF DM 6654 00 to 07 Start code RS 232C 00 to FF binary 08 to 15 12 to 15 of DM 6653 set to 0 Number of bytes received 00 Default setting 256 bytes 01 to FF 1 to 255 bytes 12 to 15 of DM 6653 set to 1 End code RS 232C 00 to FF binary 67 ID Controller Setup Section 5 1 Word s Function Error Log Settings DM 6655 The following settings are effective after transfer to the ID Controller DM 6655 00 to 03 Error Log Style 0 Shift after 10 records have been stored default 1 Store only first 10 records no shifting 2 to F Do not store records 04 to 07 ID Error Log Style 0 Shift after 30 records have been stored default 1 Sto
46. 1 3 of the Inserting a regulating resistance rated current through the incandescent bulb Be careful not to damage the output transistor Noise on Input Signal Lines O cables must be placed in separate ducts or wiring tubes both inside and out side of the control panel as shown in the following diagram MMM Z Ea LD Floor ducts Wiring tubes Suspended ducts 1 O Cables 2 Power lines Inductive Loads When connecting an inductive load to an I O terminal connect a diode in parallel with the load The diode should satisfy the following requirements 112 3 1 Peak reverse breakdown voltage must be at least 3 times the load voltage 2 Average rectified current must be 1 A Inputs Outputs IN RM et O 0 e OUT TO L Kp Contact output gt M y j Diode DC input Transistor output Diode EE i COM ERU o ____JjCOM 19 System Configuration and Installation Section 2 2 Wiring I O Terminal When connecting an external device with a DC output to a DC input terminal wire the device as shown in the following table Device output type Circuit Diagram External device on left input terminals on right Contact output NPN open collector Sensor power supply NPN current output Use the same power supply for the input and sensor Constant current circuit Sensor power supp
47. 140 6 5 Selected Special Instructions 20 0 0 eee eee ene 145 SECTION 7 Programming Examples 155 del Recording Dat cene hte ise Pee E MER ER ER Sie ee E Res E 156 7 2 Displaying Worker Instructions seeeeeeeeeeeee I II 157 7 3 Managing Production Histories 00 2c eee eee eee 158 7 4 Controlling Workpiece Flow 0 0 0 eee III 159 SECTION 8 Internal Processing 9 92 9222 161 8 L Internal Processing suolo aa dada d 162 8 2 Computing the Cycle Time sleeeeeseee II 163 8 3 Execution Times for ID Communications 0 0 0 cece eee eee eee 165 vii viii TABLE OF CONTENTS SECTION 9 Troubleshooting ia a erar PS 171 DEl Introduction coeur EUR eee V wig EE a err x e te gro 172 9 2 Programming Console Operation Errors 0 0 0 0c eee ees 173 9 3 Programming Errors ur pe bre a Peer 173 9 4 User defined Errors i o eene e ds i 174 9 3 Operating Errors 2 cas a PATER Ia See ek Ee OC ETE UE Te 175 9 6 ID Indicators ERR dace eae Re ea E eee is cene Russ 177 9 7 ID Controller Bags 545 5 5 ove lio ates ad SoS PAE EERE aia 178 9 8 ID Error Logs p eem ee oes BRR ea ee eS Ee a ee Te 179 9 9 Troubleshooting Flowcharts 0 0 0 0 e eee III 181 Appendices A Standard Models sia s 30 eke ce fue WE PURER RM Rep pehesjUeeresy ev A aes 189 BSpecificatiohs eS A ad beg pi SMe eH ARE 191 C
48. 15 Startup mode designation 00 Programming Console switch default RUN mode when not connected 01 Continue operating mode last used before power was turned off 02 Setting in 00 to 07 DM 6601 00 to 07 Reserved Set to 00 08 to 11 IOM Hold Bit SR 25212 Status 0 Reset default 1 Maintain 12 to 15 Forced Status Hold Bit SR 25211 Status 0 Reset default 1 Maintain DM 6602 to 00to 15 Reserved DM 6610 DM 6611 00 to 03 ID Communications Mode effective when Data Carrier is EEPROM 0 Communications distance given priority 1 baud rate given priority 04 to 07 ID Communications Response Refresh Method 0 Cyclic refresh 1 Interrupt refresh can trigger interrupt subroutines 04 to 09 08 to 15 Reserved Set to 00 DM 6612 to 00to 15 Reserved DM 6614 Port Settings DM 6615 to DM 6619 The following settings are effective after transfer to the ID Controller the next time operation is started DM 6615 00 to 15 Reserved DM 6616 00 to 07 Servicing time for RS 232C port effective when bits 08 to 15 are set to 01 00 to 99 BCD Percentage of cycle time used to service RS 232C port 08 to 15 RS 232C port servicing setting enable 00 Do not set service time 596 of scan time default 01 Use time in OO to 07 DM 6617 00 to 07 Servicing time for peripheral port effective when bits 08 to 15 are set to 01 00 to 99 BCD Percentage of cycle time
49. 3 Partial Clear Example 1 2 3 It is possible to retain the data in specified areas or part of the Program Memory To retain the data in the HR TC or DM Areas press the appropri ate key after pressing SET NOT and RESET Any data area that still ap pears on the display will be cleared when the MONTR Key is pressed The HR Key is used to specify both the AR and HR Areas the CNT Key is used to specify the entire timer counter area and the DM Key is used to specify the DM Area It is also possible to retain a portion of the Program Memory from the first memory address to a specified address After designating the data areas to be retained specify the first Program Memory address to be cleared For ex ample input 030 to leave addresses 000 to 029 untouched but to clear ad dresses from 030 to the end of Program Memory As an example follow the procedure below to retain the timer counter area and Program Memory addresses 000 through 122 1 Bring up the initial display 2 Press the SET NOT and then the RESET Key to begin the operation 3 Press the CNT Key to remove the timer counter area from the data areas shown on the display CNT 4 Press 123 to specify 123 as the starting program address B C D E 5 Press the MONTR Key to clear the specified regions of memory IMONTR 3 3 4 Reading Clearing Error Messages Key Sequence 40 1 2 3 This operation
50. 62 80 136 LD 140 LD NOT 140 MOV 21 146 MOVD 83 147 OR 140 OR LD 131 133 141 OR NOT 140 OUT 141 OUT NOT 141 RSET 142 RXD 150 SET 142 TIM 142 TXD 151 XFER 70 149 instructions advanced I O 86 basic 140 execution times 165 inserting and deleting 44 interrupts 94 counter mode 98 high speed counter 107 high speed counter 0 104 ID communications instructions 85 96 input 96 inputs 96 interval timers 101 103 masking 101 ON OFF delays 21 overview 3 setting modes 97 settings 65 types 94 unmasking 101 key input hexadecimal 88 ladder diagram instructions 126 notation 126 using logic blocks 131 Ladder Support Software See LSS leakage current 18 LEDs See CPU indicators leftmost definition 127 logic block instructions converting to mnemonic code 131 133 logic blocks See also ladder diagram instructions 141 LSS 34 connection 25 models 25 operations 52 M macros memory area 56 memory protection 10 write protecting DC memory 76 memory areas AR Area 58 clearing 39 DM Area 59 HR Area 57 IR Area 57 link bits 58 partial clear 40 SR Area 57 structure 56 timer and counter bits 58 TR Area 57 user program memory 59 work bits 57 Memory Cassettes 10 13 59 autobooting 10 installation 13 models 25 189 mode selector Programming Console 12 model numbers 189 modifying binary data 51 hexadecimal BCD
51. Before executing the program the following ID Controller Setup set ting must be made DM 6645 1000 RS 232C port in RS 232C Mode standard communications conditions DM 6648 2000 No start code end code CR LF The default values are assumed for all other ID Controller Setup settings From DM 0100 to DM 0104 3132 is stored in every word From the computer execute a program to receive ID Controller data with the standard communications conditions 00100 DIFU 13 00101 00101 ARO805 The data will be as follows 31323132313231323132CR LF If AR 0805 the Transmit Ready Flag is ON when IR 00100 turns ON the ten bytes of data DM 0100 to DM 0104 will be transmitted left most bytes first ARO806 When AR 0806 Reception Completed Flag goes ON the number of bytes of data specified in AR 09 will be read from the ID Controller s reception buffer and stored in memory starting at DM 0200 leftmost bytes first 117 Communications Section 5 6 5 6 5 One to one Link Communications If two ID Controllers are linked one to one by connecting them together through their RS 232C ports they can share common LR areas When two ID Control lers are linked one to one one of them will serve as the master and the other as the slave Note The peripheral port cannot be used for 1 1 links One to one Links A one to one link allows two ID Controllers to share common data in their LR areas As shown in t
52. Cassette Installation Follow the procedure below to install a Memory Cassette in the ID Controller N Caution Always turn off power to the ID Controller before installing or removing a Memory Cassette 1 2 3 1 Remove the mounting bracket from inside the memory cassette compart ment 2 Slide the Memory Cassette into the ID Controller on the tracks provided Press the Memory Cassette in so that the connectors fit securely Memory cassette Mounting bracket 13 Component Names and Functions Section 2 1 EEPROM Write Protection Turn on the write protect switch on the EEPROM Memory Cassette to prevent the program or ID Controller Setup from being deleted accidentally Turn the switch off when writing to the Memory Cassette N Caution Always turn off the ID Controller and remove the Memory Cassette when chang ing the write protect switch setting Read write Read only write protected Note Flag AR 1302 will be ON when the write protect switch is ON EPROM Version The three EPROM Chips listed below can be used in the Memory Cassettes These Chips are made by OMRON EPROM version Capacity Access speed Model number 8K words 16K words 32K words Be sure that the EPROM version set with the switch on the Memory Cassette agrees with the EPROM version of the installed chip Refer to the following dia gram and table for the location of the switch and its settings EPROM Version Pin 1 Setting
53. Communications flags and counters can be cleared either by specifying 0000 for N or using the Port Reset Bits SR 25208 for peripheral port and SR 25209 for RS 232C port 6 5 7 TRANSMIT TXD 48 Description Host Link Mode Note Ladder Symbols Operand Data Areas S First source word Q TXD 48 IR SR AR DM HR TC LR S PLA DA ON N Number of bytes IR SR AR DM HR TC LR When the execution condition is OFF TXD 48 is not executed When the exe cution condition is ON TXD 48 reads N bytes of data from words S to S N 2 1 converts it to ASCII and outputs the data from the specified port TXD 48 operates differently in host link mode and RS 232C mode so these modes are described separately Flag AR 0805 will be ON when the ID Controller is capable of transmitting data through the RS 232C port and AR 0813 will be ON when the ID Controller is ca pable of transmitting data through the peripheral port N must be BCD from 0000 to 0061 i e up to 122 bytes of ASCII The value of the control data determines the port from which data will be output as shown below Digit number 3 2 1 0 Not used Set to 000 Port 0 Specifies RS 232C port 1 Specifies peripheral port 151 Selected Special Instructions Section 6 5 The specified number of bytes will be read from S through S N 2 1 converted to ASCII and transmitted through the specified port The b
54. D bits 0 to 3 show the mask status 0 Mask cleared Input interrupt permitted 1 Mask set Input interrupt not permitted Counter Mode Use the following steps to program input interrupts using the Input Interrupt Mode Note The SR words used in the Counter Mode SR 244 to SR 251 all contain binary hexadecimal data not BCD 1 2 3 1 Write the set values for counter operation to SR words correspond to inter rupts O to 3 The set values are written between 0000 and FFFF 0 to 65 535 A value of 0000 will disable the count operation until a new value is set and step 2 below is repeated Note These SR bits are cleared at the beginning of operation and must be written from the program That maximum input signal that can be counted is 1 kHz Interrupt Word Input interrupt O Input interrupt 1 Input interrupt 2 Input interrupt 3 If the Counter Mode is not used these SR bits can be used as work bits 2 With the INT instruction refresh the Counter Mode set value and enable interrupts If D bits O to 3 which correspond to input interrupts O to 3 are set to 0 then the set value will be refreshed and inter rupts will be permitted 0 Counter mode set value refreshed and mask cleared 1 Nothing happens Set to 1 the bits for all interrupts that are not being changed The input interrupt for which the set value is refreshed will be enabled in Counter Mode When the counter reach
55. Example 80 The DC WRITE IDWT 62 and DC AUTOWRITE IDAW 64 instructions are used to write data to Data Carriers The maximum amount of data that can be written each time a instruction is executed is 256 bytes Data cannot be written to areas that are write protected Any attempt to do so will generate a write protected error IDWT 62 reads data from one or more words S first word of the ID Controller and then writes the data to memory D first address designated in the Data Car rier IDAW 64 places execution of the write operation on standby until a Data Carrier is detected It then reads data from the ID Controller and writes the data to memory in the Data Carrier 0 IDWT 62 First destination address in DC 4 digit HEX Control data number of bytes 5 First source word in ID Controller Refer to page 136 for further details on control data The following example reads 10 bytes of data between DM 0200 and DM 0204 in the ID Controller and writes the data starting from address 0020 of the Data Carrier If SR 23300 ID Ready Flag is ON when input IR 00100 turns ON 10 bytes of data will be read starting from DM 0200 and written to the Data Carrier starting from address 0020 The write operation will be executed when the Data Carrier is detected ID Communications Section533 SR 23301 ID Completed Flag will turn ON when execution of IDAW 64 has been completed and this will signal
56. ID Controller will be turned off If it is not necessary to have all outputs off turn OFF SR 25215 ID Controller operation and program execution will stop and all outputs from the ID Controller will be turned OFF when any of these errors have occurred All ID Controller indicators will be OFF for the power interruption error For all other fatal operating errors the POWER and ERR ALM indicators will be lit The RUN indicator will be OFF ID indicators will be OFF for power interruptions but are not related to other errors shown here Meaning and appropriate response Power has been interrupted for more than the specified period Check power supply voltage and power lines Try to power up again MEMORY ERR AR 1611 ON A checksum error has occurred in the ID Controller Setup DM 6600 to DM 6655 Initialize all of the ID Controller Setup and reinput AR 1612 ON A checksum error has occurred in the program indicating an incorrect instruction Check the program and correct any errors detected AR 1613 ON A checksum error has occurred in an expansion instruction s data Initialize all of the expansion instruction settings and reinput AR 1614 ON Memory Cassette was installed or removed with the power on Turn the power off install the Memory Cassette and turn the power on again AR 1615 ON The Memory Cassette contents could not be read at start up Check flags AR 1412 to AR 1415 to determine the problem correct it
57. KEY INPUT 88 TEN KEY INPUT 86 using alternate I O bits 93 ambient temperature 16 applications examples 4 156 AR Area allocations 197 ASCII converting displays 49 autobooting 10 autoread cancelling 74 82 flags 61 standby time 74 autowrite cancelling 74 82 flags 61 standby time 74 basic instructions 140 Battery Set 10 model number 25 replacement 25 BCD converting 127 definition 127 binary definition 127 binary data modifying 51 bit status force set reset 49 buzzer operation Programming Console 41 C cables model numbers 189 check levels program checks 173 checking program syntax 47 clearing memory areas 39 Index clock 13 reading and changing 42 communication errors 176 communications 110 See also ID communications errors 4 host link 112 113 link 118 one to one 118 overview 3 receiving data 150 sending data 151 settings 111 standard See settings troubleshooting 182 types 110 comparing data 145 components 10 connections Read Write Heads 31 connectors applicable models 28 crimp connectors 31 contact outputs specifications 24 counters conditions when reset 143 creating 143 creating extended timers 144 current consumption 23 24 cycle time displaying 49 D data converting 128 modifying 51 data areas See memory areas Data Carriers capacity 76 checking 83 clearing 82 137 communications ti
58. LL IR SR AR DM HR TC LR pq qve Note D First destination word IR SR AR DM HR LR IDRD 61 and IDAR 63 are used to read data from a Data Carrier IDRD 61 reads data from the Data Carrier memory S first address and stores the data in the ID Controller memory D first word IDAR 63 places execution of the read operation on standby until a Data Carrier is detected It then reads data from Data Carrier memory and stores the data in the ID Controller Data returned from reads can be processed return once per scan using cyclic refreshes or it can be processed via interrupts generated at the end of commu nications with the Data Carrier interrupt refreshes Set the ID communications response refresh method in DM 6611 bits 04 to 07 With the interrupt refresh method subroutines 004 to 009 of the user program can be executed ID Communications Instructions Section 6 3 Control Data Set the control data C as shown in the following table Functions Values Number of bytes 001 to 256 in BCD addresses to read None Set to 0 Read data order in ID O Leftmost byte first Controller 4 Rightmost byte first None Set to 0 None Set to 0 Note Up to 256 bytes can be read with the execution of each instructions All bytes read with one instruction will be refreshed at the same time Precautions The addresses that can be specified for the first source word S depend on the Dat
59. Peripheral Port C200H CN222 Connects C200H Programming Console to Peripheral Port 2 m C200H CN422 Connects C200H Programming Console to Peripheral Port 4 m Memory Cassettes Optional Model Number Clock Function Memory CQM1 ME04K 4K word EEPROM CQM1 ME04R CQM1 ME08K 8K word EEPROM CQM1 ME08R CQM1 MPO8K EPROM IC socket only EPROM chip not included Refer to the following COM1 MPO8R table for details on available EPROM ICs 189 Appendix B Specifications General Specifications Supply voltage 100 to 240 VAC 50 60 Hz Operating voltage range 85 to 264 VAC Operating frequency range 47 to 63 Hz Power consumption 60 VA max Inrush current 30 A max Output capacity 5 VDC 3 6 A 18 W Insulation resistance 20 MQ min at 500 VDC between AC external terminals and GR terminals see note 1 Dielectric strength 2 300 VAC 50 60 Hz for 1 min between AC external and GR terminals see note 1 leakage current 10 mA max Noise immunity 1 500 Vp p pulse width 100 ns to 1 us rise time 1 ns via noise simulation Vibration resistance 10 to 57 Hz 0 075 mm amplitude 57 to 150 Hz acceleration 1G see note 2 in X Y and Z directions for 80 minutes each Time coefficient 8 minutes x coefficient factor 10 total time 80 minutes Shock resistance 15G 12G for contact outputs 3 times each in X Y and Z dir
60. SPED PULS Using Interrupts Section 5 5 The following methods can be used to circumvent this limitation Method 1 All interrupt processing can be masked while the instruction is being executed Method 2 Execute the instruction again in the main program This is the program section from the main program LROOOO This is the program section from the interrupt subroutine DM 0000 RSET LR 0000 25313 CTBL DM 0000 m Cc 2 o 35 o 95 Using Interrupts Section 5 5 5 5 2 ID Communications Response Interrupts ID Controller Setup Refreshing interrupts for ID communications responses can be specified in bits 04 to 07 of DM 6611 of the ID Controller Setup to enable the generation of interrupts to process ID communications Subroutines 004 through 009 are used to process ID communications with the specific subroutine depending on the instruction that is executed as shown below Instruction Subroutine executed IDRD 61 004 IDWT 62 005 IDAR 63 006 IDAW 64 007 IDCA 65 008 IDMD 66 009 Using ID communications response interrupts will increase the speed of com munications with Data Carriers and will enable executing the appropriate pro gramming i e subroutine as soon as Data Carrier communications end This will allow you to process data from Data Carriers immediately using ladder dia gram programming and then write the results back to the Data
61. Section 1 describes the features of an ID Controller and the types of system configuration in which it can be used Section 2 describes the components that make up an ID Controller and the procedures necessary to install and mount an ID Controller Section 3 describes the Programming Console Ladder Support Software LSS Operations and SYS MAC Support Software SSS Operations used with an ID Controller System Section 4 describes the structure and use of the data areas used by the ID Controller Section 5 describes the functions of the ID Controller and the Setup that can be used to control those functions Section 6 describes some of the ladder diagram programming used to program the ID Controller Refer to the CQM1 Programming Manual for more information on ladder diagram programming Section 7 provides four programming examples using ID communications instructions Section 8 described the processing that takes place within the ID Controller and explains how to calculate the time required for program execution and related processing called the scan time Section 9 describes how to diagnose and correct the hardware and software errors that can occur during ID Controller operation and how to create user errors based on program execution The Appendices provide information on standard models specifications dimensions SR and AR Area allocations and extended ASCII NNARNING Failure to read and understand the information provided
62. The month is represented by two digits For example 03 for March and 10 for October The write protect function protects important data stored in the memory of the Data Carrier such as product number and model from inadvertent write access With this function the data up to a specified memory address can be protected Data Carrier capacity Specification Write protect setting 256 bytes or less End address specified In 0000 start address is fixed at 0001 More than 256 bytes Start and end address 0002 to 0005 specified Memory Capacity of 256 Bytes or Less It is recommended that important data be write protected as follows The write protect function is set in address 0000 of the Data Carrier s memory The most significant bit of address 0000 determines whether or not the write pro tect function is in effect Address Bit 7 6 5 4 3 2 1 0 m YES Last 2 digits of end address NO Write protect execution bit most significant bit of address 0000 1 Write protected 0 Not write protected The end address can be set between 00 and 7F Setting the address to 00 pro tects all bytes from 01 through FD Setting the address to a value from 01 to 7F protects all bytes from 01 through the specified address It is not possible to specify an end address between 80 and FF 1 Address 00 cannot be write protected 2 Address 01 is always the starting address of the write protect area ID Communications Section 5
63. The process whereby a device will re transmit data which has resulted in an er ror message from the receiving device The process by which instruction execution shifts from a subroutine back to the main program usually the point from which the subroutine was called A counter that can be both incremented and decremented depending on the specified conditions A shift register that can shift data in either direction depending on the specified conditions See terminal instruction The lowest numbered bits of a group of bits generally of an entire word or the lowest numbered words of a group of words These bits words are often called least significant bits words The point where a signal actually changes from an OFF to an ON status Read only memory a type of digital storage that cannot be written to A ROM chip is manufactured with its program or data already stored in it and can never be changed However the program or data can be read as many times as de sired 213 OS D rotate register RS 232C interface RUN mode rung scan scan time scheduled interrupt self diagnosis self maintaining bit series servicing set set value shift input signal shift register signed binary software error source word special instruction SR area SSS subroutine 214 A shift register in which the data moved out from one end is placed back into the shift register at the other end
64. The program shown in the following diagram will be entered to demonstrate this operation 00200 IR 00002 0123 ow wove AAA AA 0 oos apse AAA AA EA 0000 J Address Operands 0123 1235s MOV 21 0100 LR 10 ADB 50 0100 FFF6 DM 0000 Bring up the initial display Input the address where the program will begin C A A i LD C Press the WRITE Key to write the instruction to Program Memory The next program address will be displayed WRITE If a mistake was made inputting the instruction press the Up Cursor Key to return to the previous program address and input the instruction again The mistaken instruction will be overwritten 45 Programming Console Operations Section 3 3 46 5 Input the second instruction and operand In this case it isn t necessary to enter the timer number because it s 000 Press the WRITE Key to write the instruction to Program Memory Timer number 6 Input the SV as the second operand 123 to specify 12 3 seconds and press the WRITE Key The next program address will be displayed 1 2 3 wnrrE If a mistake was made inputting the operand press the Up Cursor Key to return to display the mistaken operand press the CONT Key and 123 again The mistaken operand will be overwritten Note Counters are input in the same basic way as timers except the CNT Key is pres
65. a NC condition on the reset R for KEEP 11 when the input device uses an AC power supply see diagram below The delay in shut ting down the ID Controller s DC power supply relative to the AC power supply to the input device can cause the designate bit of KEEP 11 to be reset A ee AC VY Input Unit These bits mainly serve as flags related to ID Controller operation For details on the various bit functions refer to relevant sections in this manual or to Appen dix D AR and SR Area Allocations When the ID Controller is linked one to one with another ID Controller these bits are used to share data Refer to the CQM1 Programming Manual for details on using link bits in 1 to 1 communications LR bits can be used as work bits when not used for data links This area is used to manage timers and counters created with TIM TIMH 15 CNT and CNTR 12 The same numbers are used for both timers and counters and each number can be used only once in the user program Do not use the same TC number twice even for different instructions TC number are used to create timers and counters as well as to access Comple tion Flags and present values PVs If a TC number is designated for word data it will access the present value PV if it is used for bit data it access the Comple tion Flag for the timer counter The Completion Flag turns ON when the PV of the timer counter that is being used goes to 0 Refer to
66. and their respective processing times are explained Process Content Time requirements Overseeing Setting cycle watchdog timer I O bus check UM 0 9 ms 1 0 ms when a Memory Cas check refreshing clock refreshing ID data etc sette equipped with a clock is mounted See note 2 Program execution User program is executed Total time for executing instructions Varies according to content of user s program Cycle time calculation Standby until set time when minimum cycle time Almost instantaneous except for stand is set in DM 6619 of ID Controller Setup by processing Calculation of cycle time I O refresh Input information is read to input bits 0 01 ms Output information results of executing program 0 005 ms is written to output points RS 232C port servicing Devices connected to RS 232C port serviced 5 or less of cycle time See note 1 Peripheral port servicing Devices connected to peripheral port serviced 596 or less of cycle time See note 1 Note 1 The percentages can be changed in the ID Controller Setup DM 6616 DM 6617 2 If storing ID errors is specified in the ID Controller Setup the timer required for overseeing operations increases by 0 2 ms during any cycle where an ID error occurs 163 Computing the Cycle Time Section 8 2 Cycle Time and Operations The affects of the cycle time on ID Controller operations are as shown below Cycle time Operation conditio
67. apply voltages exceeding the maximum permissible input voltage to inputs nor voltages exceeding the switching capacity to output Doing so may result in damage or destruction of the ID Controller or may result in fire Leakage Current 24 VDC A leakage current can cause false inputs when using 2 wire sensors proximity switches or photoelectric switches or limit switches with LEDs on 24 VDC in puts 18 System Configuration and Installation Section 2 2 If the leakage current exceeds 1 3 mA insert a bleeder resistor in the circuit to reduce the input impedance as shown in the following diagram Input power supply 2 wire method Bleeder resistor R IDSC sensor etc R 7 2 2 41 3 kQ max I Device s leakage current mA R Bleeder resistance kQ W 2 3 R W min W Bleeder resistor s power rating W The equations above were derived from the following equation input voltage 24 X Input current 10 Input voltage 24 Input current 10 Ix lt OFF voltage 3 W 2 Input voltage 24 R x Input voltage 24 x tolerance 4 Inrush Current Transistor The following diagram shows two methods that can be used to reduce the large inrush current caused by certain loads such as incandescent light bulbs when connected to transistor outputs Example 1 J Example 2 5 w OUT MN OUT w O R T T COM COM Generating a dark current about
68. are made but comparisons will not be made with the com parison table and interrupts will not be generated unless the CTBL instruc tion is executed The high speed counter is reset to 0 when power is turned ON when operation begins The present value of the high speed counter is maintained in SR 230 and SR 231 Controlling High speed Counter Interrupts 1 2 3 1 Use the CTBL instruction to save the comparison table in the ID Control ler and begin comparisons C 3 digits BCD 000 Target table set and comparison begun 001 Range table set and comparison begun 002 Target table set only 003 Range table set only TB Beginning word of comparison table If C is set to 000 then comparisons will be made by the target matching method if 001 then they will be made by the range comparison method The comparison table will be saved and when the save operation is complete then comparisons will begin While comparisons are being executed high speed counter inter rupts will be executed according to the comparison table Note The comparison results are stored in AR 1100 through AR 1107 while the range comparison is being executed If C is set to 002 then comparisons will be made by the target matching method if 003 then they will be made by the range comparison method For either of these settings the comparison table will be saved but comparisons will not be gin and the INI instruction must be used
69. cannot be logically combined using only OR and AND operations AND LD and OR LD are used Whereas AND and OR operations logically combine a bit status and an execution condi tion AND LD and OR LD logically combine two execution conditions the current one and the last unused one In order to draw ladder diagrams it is not necessary to use AND LD and OR LD instructions nor are they necessary when inputting ladder diagrams directly as is possible from the LSS SSS They are required however to convert the pro gram to and input it in mnemonic form In order to reduce the number of programming instructions required a basic un derstanding of logic block instructions is required For an introduction to logic blocks refer to 6 2 5 Logic Block Instructions Flags There are no flags affected by these instructions 6 4 3 OUTPUT and OUTPUT NOT OUT and OUT NOT OUTPUT OUT Ladder Symbol Operand Data Areas B Bit C IR SR AR HR LR TR Key Sequence OUT Bit address WRITE TPUT NOT OUT NOT OUTPULHOT SOUENO Ladder Symbol Operand Data Areas B Bit ES IR SR AR HR LR Key Sequence OUT NOT Bit_address WRITE Description OUT and OUT NOT are used to control the status of the designated bit according to the execution condition OUT turns ON the designated bit for an ON execution condition and turns OFF the designated bit for an OFF execution condition OUT NOT turns ON the designated bit for a OFF execution condition and turns
70. changing the display by first press ing the SHIFT Key and then changing the setting of the mode selector When changing between RUN and PROGRAM mode press the SHIFT Key once and change to MONITOR mode and then press the SHIFT Key again before switch ing to the final mode RUN mode is used when operating the ID Controller in normal control condi tions Bit status cannot be force set or reset and SVs PVs and data cannot be changed online MONITOR mode is used when monitoring program execution such as making a trial run of a program The program is executed just as it is in RUN mode but bit status timer and counter SV PV and the data content of most words can be changed online Output points will be turned ON when the corresponding output bit is ON PROGRAM mode is used when making basic changes to the ID Controller pro gram or settings such as transferring writing editing or checking the program or changing the ID Controller Setup The program is not executed in PROGRAM mode The factors that determine the initial operating mode of the ID Controller the mode when the ID Controller is turned on are listed below 1 No Devices mounted RUN mode If no Peripheral Devices are mounted to the ID Controller the ID Controller will enter RUN mode when turned ON unless the startup mode setting in the ID Controller Setup DM 6600 has been set to MONITOR or PROGRAM Mode Programming Console mounted If the Programming Console
71. communications One is based on C mode commands and the other on FINS CV mode com mands The ID Controller supports C mode commands only For details on host link communications refer to the CQM1 Programming Manual Communications parameters such as the communication conditions mode and unit number must be set to use host link communications Set the ID Con troller Setup for host link communications i e set bits 12 to 15 of DM 6645 or DM 6650 to zero when communicating via host link standards Always set the same parameters as the other parties in the communications are using A node number must be set for host link communications to differentiate be tween nodes when multiple nodes are participating in communications This set ting is required only for host link communications To use host link communica tions the host link must be specified as the communications mode and the com munications parameters must be set see following section Bit 15 0 DM 6648 RS 232C port 010 i DM 6653 Peripheral port l Node number P 2 digits BCD 00 to 31 Default 00 Set the node number to 00 unless multiple nodes are connected in a network This section explains how to use the host link to execute data transmissions from the ID Controller Using this method enables automatic data transmission from the ID Controller when data is changed and thus simplifies the communications process by eliminating the need for
72. constant monitoring by the computer 1 2 3 1 Check to see that AR 0805 RS 232C Port Transmit Ready Flag is ON 2 Use the TXD instruction to transmit the data TXD S Beginning word no of transmission data C Control data Bits 00 to 11 0000 Bits 12 to 15 0 RS 232C port 1 Peripheral port N Number of bytes of data to be sent 4 digits BCD 0000 to 0061 From the time this instruction is executed until the data transmission is complete AR 0805 or AR 0813 for the peripheral port will remain OFF It will turn ON again upon completion of the data transmission The TXD instruction does not provide for a response so in order to receive confirmation that the computer has received the data the computer s program must be written so that it gives notification when data is written from the ID Controller The transmission data frame is as shown below for data transmitted in the Host Link Mode by means of the TXD instruction 9 x10 x 100 X LPS Node Header code Data up to 122 characters FCS Terminator No Must be EX To reset the RS 232C port i e to restore the initial status turn ON SR 25209 To reset the peripheral port turn ON SR 25208 These bits will turn OFF auto matically after the reset 113 Communications Section 5 6 Application Example If the TXD instruction is executed while the ID Controller is in the middle of responding to a command
73. digit HEX S Control data number of bytes First destination word in ID Controller Refer to page 134 for further details on control data Data returned from reads can be processed return once per scan using cyclic refreshes or it can be processed via interrupts generated at the end of commu nications with the Data Carrier interrupt refreshes Set the ID communications response refresh method in DM 6611 bits 04 to 07 With the interrupt refresh method subroutines 004 to 009 of the user program can be executed The following example reads five bytes of data starting at address 0010 of the Data Carrier and stores the data starting at DM 0100 in the ID Controller If SR 23300 ID Ready Flag is ON when input IR 00100 turns ON 5 bytes of data are read starting from address 0010 to and written starting at DM 0100 The data is stored with the most significant bytes first 79 ID Communications Section 5 3 SR 23301 ID Completed Flag will turn ON when execution of IDRD 61 has been completed and this will signal either a normal or error end depending on the status of SR 23302 ID Communications Error Flag 00100 23300 23301 Normal end 23302 Error end Data Carrier ID Controller 0010 01 DMO0100 0102 02 mm DMO10 0304 03 DMO0102 05 04 E Previous data will remain unchanged 5 3 8 Writing Data Carriers IDWT 62 IDAW 64 Using the Instruction
74. distance setting 0 or the communications speed setting 1 will take precedence in EEPROM Data Carriers not powered by batteries AR 2400 will turn ON if an error is generated by the ID Controller Setup when operation is started i e when power is turned on or after switching to RUN mode 5 3 2 ID Communication Response Refresh Method DM 6611 Bits 04 to 07 This setting specifies one of two ID communication response refresh methods for ID communication instructions e Cyclic Refreshes 0 ID communication response data will be returned once per scan e Interrupt Refreshes 1 This setting will cause interrupts to be generated when ID communications response data is returned Subroutines 004 to 009 in the user program will be executed in response to these interrupts IDRD 61 Subroutine 004 IDWT 62 Subroutine 005 IDAR 63 Subroutine 006 IDAW 64 Subroutine 007 IDCA 65 Subroutine 008 IDMD 66 Subroutine 009 AR 2400 will turn ON if an error is generated by the ID Controller Setup when operation is started i e when power is turned on or after switching to RUN mode 73 ID Communications Section 5 3 5 3 3 Data Carrier Standby Time DM 6643 Canceling with Input Bit ID Ready Flag 23300 23300 ID Ready Flag 74 This setting determines the Data Carrier standby time for ID AUTOREAD IDAR 63 and ID AUTOWRITE IDAW 64 The time is designated between 0001 0 1 s to 9999 999 9 s Designati
75. either a normal or error end depending on the status of SR 23302 ID Communications Error Flag 00100 23300 HA QIDAW 64 0020 0010 DM 0200 23301 23302 Normal end 23302 Error end ID Controller Data Carrier DM0200 1122 0020 11 0025 66 DMO0201 3344 gt 0021 22 0026 77 DM0202 5566 0022 33 0027 88 DM0203 7788 0023 44 0028 99 DM0204 99AA 0024 55 0029 AA 81 ID Communications Section533 5 3 9 Cancelling DC AUTOREAD and DC AUTOWRITE The AUTOREAD WRITE Cancel Bit SR 23200 is used to cancel read write op erations that are waiting for detection of a Data Carrier when IDAW 64 or IDAR 63 is executed Example The following example shows how to cancel processing while a read initiated by DC AUTOREAD IDAR 63 is in progress for 5 bytes of data starting from address 0010 of the Data Carrier If SR 23300 ID Ready Flag is ON when input IR 00100 turns ON IDAR 63 will be executed and execution of the read operation will wait for detection of a Data Carrier The AUTOREAD WRITE Cancel Bit SR 23200 will turn ON when IR 00101 turns ON canceling the read operation After the read operation is canceled SR 23300 ID Ready Flag will turn ON turning OFF the AUTOREAD WRITE Cancel Bit SR 23200 00100 23300 DIFU 13 00102 00102 23300 o 23200 00101 N Caution The data at the specified destination wo
76. in which signals from an external source are counted at high speed and an interrupt is carried out once for every certain num ber of signals In the Counter Mode signals up to 1 KHz can be counted Using Interrupts Section 5 5 ID Controller Setup Input Interrupt Mode Note Before executing the program make the following settings in the ID Controller Setup in PROGRAM mode Interrupt Input Settings DM 6628 If these settings are not made interrupts cannot be used in the program Bit 15 0 DM6628 Input interrupt 3 setting Input interrupt 2 setting Input interrupt 1 setting Input interrupt O setting 0 Normal input 1 Interrupt input Default All normal inputs Input Refresh Word Settings DM 6630 to DM 6633 Make these settings when it is necessary to refresh inputs Bit 15 0 DM 6630 Interrupt O DM6630 to DM 6633 i i DM 6631 Interrupt 1 DM 6632 Interrupt 2 a DM 6633 Interrupt 3 Input refresh setting 00 or 01 Set to 00 Default No input refresh Example If DM 6630 is set to 0100 IR 000 will be refreshed when a signal is received for interrupt O If input refreshing is not used input signal status within the interrupt routine will not be turned ON during execution of the routine This includes even the status of the interrupt input bit that activated the interrupt For example IR 00000 would not be ON in interrupt routine for input interrup
77. large Confirm the requirements for the instruction and re enter the address 9 3 Programming Errors These errors in program syntax will be detected when the program is checked using the Program Check operation Three levels of program checking are available The desired level must be des ignated to indicate the type of errors that are to be detected The following table provides the error types displays and explanations of all syntax errors Check level O checks for type A B and C errors check level 1 for type A and B errors and check level 2 for type A errors only Level A Errors Message Meaning and appropriate response The program has been damaged creating a non existent function code Re enter the program CIRCUIT The number of logic blocks and logic block instructions does not ERR agree i e either LD or LD NOT has been used to start a logic block whose execution condition has not been used by another instruction or a logic block instruction has been used that does not have the required number of logic blocks Check your program OPERAND A constant entered for the instruction is not within defined values ERR Change the constant so that it lies within the proper range NO END There is no END 01 in the program Write END 01 at the final INSTR address in the program LOCNERR Aninstruction is in the wrong place in the program Check instruction requirements and correct the program JME A JM
78. location e g data links A group of instructions that is logically related in a ladder diagram program and that requires logic block instructions to relate it to other instructions or logic blocks An instruction used to locally combine the execution condition resulting from a logic block with a current execution condition The current execution condition 209 GSS T logic instruction LR area LSS main program mark trace masked bit masking megabyte memory area message number mnemonic code MONITOR mode most significant bit word NC input negative delay nesting NO input noise interference nonfatal error normal condition normally closed condition normally open condition NOT 210 could be the result of a single condition or of another logic block AND Load and OR Load are the two logic block instructions Instructions used to logically combine the content of two words and output the logical results to a specified result word The logic instructions combine all the same numbered bits in the two words and output the result to the bit of the same number in the specified result word A data area that is used in data links See Ladder Support Software All of a program except for subroutine and interrupt programs A process in which changes in the contents of specific memory locations are re corded during program execution A bit whose status has been tem
79. log record 2 N All records shifted X Error log record 29 lt Error log record 30 New record added 2 You can store only the first 30 error log records and ignore any subsequent errors beyond those 30 3 You can disable the log so that no records are stored The default setting is the first method Refer to Error Log Settings on page 71 for details on the ID Controller Setup for the error log If a Memory Cassette without a clock is mounted the date and time will be all zeros Error records will be stored even if pin 1 on the ID Controller DIP switch is turned ON to protect DM 6144 to DM 6655 To clear the entire ID Error Log turn ON SR 23210 from a peripheral device To clear the entire ID Error Statistics Log turn ON SR 23211 from a peripheral de vice After the error log has been cleared SR 23210 and SR 23211 will turn OFF again automatically Troubleshooting Flowcharts Section9 9 9 9 Troubleshooting Flowcharts Use the following flowcharts to troubleshoot errors that occur during operation Main Check Error Not lit Check power supply See page 183 Power indicator lit Lit Not lit RUN indicator lit Check for fatal errors See page 184 Lit ERR ALM indicator flashing Flashing Check for non fatal errors See page 185 Not lit Are ID commu Not normal nications normal Check ID communications See pag
80. of the ID Controller when the instruction is executed The following diagram illustrates a generalized case ID communications instruction executed Y NM AD OU ME a ID Ready Flag SR 23300 i ID Completed Flag 1 E dd 2301 For interrupt For cyclic refreshes refreshes Refresh delay i ID communications time z Cycle time ID Controller FEE Instruction execution IE Instruction execution C Instruction execution El processing Calculations for Cycle Refreshes TAT Instruction execution time ID communications time refresh delay Refresh delay 1 cycle maximum Calculations for Interrupt Refreshes Refreshes TAT z Instruction execution time ID communications time interrupt overhead The interrupt overhead is the time required to activate the interrupt subroutine and is 0 1 ms for any ID communication instructions plus 0 3 ms to store read data for IDRD 61 and IDAR 63 Instruction Execution Times This following table lists the execution times for ID communications instructions The maximum and minimum execution times and the conditions which cause them are given where relevant When word is referred to in the Conditions col umn it implies the content of any word except for indirectly addressed DM words Indirectly addressed DM words which create longer execution times when used are indicated by DM Refer to the CQM1 Programming Manual for execution times for
81. output points O through 3 Output point 4 will be turned ON while any key is being pressed but there is no need to connect it Using the Instruction IW Input word OW Control signal output word I A R el D First register word If the input word for connecting the hexadecimal keyboard is specified at IW and the output word is specified at OW then operation will proceed as shown below when the program is executed Assume that several numbers have already been entered IW 00 C 01 LI 02 LI 16 key selection control signals 93 JEU Treni 16 key to to F DIARREA Status of 16 keys D 2 o9 i X Flags corresponding 09 to input keys The to flags remain ON until 15 the next input OW 04 ON if a key is 123456789101112 pressed Once per 12 cycles Y Y 0A01 230F A012 30FF 0123 OFF9 D 1 D D 1 D D 1 D SR 25408 will turn ON while HKY is being executed Note 1 Do not use HKY more than once within the same program 2 When using HKY set the input constant for the relevant input word to less than the cycle time Input constants can be changed from DM 6620 onwards 3 While one key is being pressed input from other keys will not be accepted 4 If more than eight digits are input digits will be deleted beginning with
82. p m Flags corresponding 02 1 to 10 key inputs The 3 1 2 4 3 8 1 0 2 i NE flags remain ON until to C oaa d pod the next input gor v cur Em gH mE 4 2143 8 1 02 9 10 ON if a key is pressed od 1 2 3 4 Note 1 While one key is being pressed input from other keys will not be accepted 2 If more than eight digits are input digits will be deleted beginning with the leftmost digit 3 Input bits not used here can be used as ordinary input bits Application Example In this example a program for inputting numbers from the 10 key is shown As sume that the 10 key is connected to IR 000 25313 Always ON DM1000 DM1002 The 10 key information input to IR 000 using TKY is converted to BCD and stored in DM 1000 and DM 1001 Key information is stored in DM 1002 IR 00015 is used as an ENTER key and when IR 00015 turns ON the data stored in DM 1000 and DM 1001 will be transferred to DM 0000 and DM 0001 00015 87 Advanced I O Instructions Section 5 4 5 4 2 HEXADECIMAL KEY INPUT HKY This instruction inputs 8 digits in hexadecimal from a hexadecimal keyboard It utilizes 5 output bits and 4 input bits of the I O terminals sixteen 24 VDC inputs and sixteen transistor outputs N Caution This instruction cannot be used with contact outputs Hardware Prepare the hexadecimal keyboard and connect the O to F numeric key switches to input points O through 3 and
83. speed counter is used these bits are used to store its present value LR 00 to LR 63 are used as link bits but they can also be used as work bits when not linked to another ID Controller Refer to the CQM1 Programming Manual for details on using link bits in 1 to 1 communications These bits mainly serve as flags related to ID Controller operation For details on the various bit functions refer to Appendix D AR and SR Area Allocations SR 244 to SR 247 can also be used as work bits when input interrupts are not used in Counter Mode When a complex ladder diagram cannot be programmed in mnemonic code just as it is these bits are used to temporarily store ON OFF execution conditions at program branches They are used only for mnemonic code When programming directly with ladder diagrams using the Ladder Support Software LSS or SYS MAC Support Software SSS TR bits are automatically processed for you The same TR bits cannot be used more than once within the same instruction block but can be used again in different instruction blocks The ON OFF status of TR bits cannot be monitored from a Peripheral Device These bits retain their ON OFF status even after the ID Controller power supply has been turned off or when operation begins or stops They are used in the same way as work bits 57 Data Area Functions Section 4 2 N Caution AR Area LR Area Timers Counters Area 58 Note Never use an input bit in
84. subroutine 001 is called and the interrupt pro cessing routine is executed 100 Using Interrupts Section 5 5 When the program is executed operation will be as shown in the following dia gram 00000 Subroutine 000 10 counts 10 counts 20 counts 00001 x D Mn Pi Subroutine 001 x see note 1 see note 1 00100 Note see note 2 1 The counter will continue operating even while the interrupt routine is being executed 2 The input interrupt will remained masked 5 5 4 Masking All Interrupts Masking Interrupts Unmasking Interrupts All interrupts including input interrupts interval timer interrupts and high speed counter interrupts and ID communications response interrupts can be masked and unmasked as a group by means of the INT instruction The mask is in addition to any masks on the individual types of interrupts Furthermore clearing the masks for all interrupts does not clear the masks on the individual types of interrupts but restores them to the masked conditions that existed before INT was executed to mask them as a group Do not use INT to mask interrupts unless it is necessary to temporarily mask all interrupts and always use INT instructions in pairs to do so using the first INT instruction to mask and the
85. the ID Controller and Data Carriers DC Mnemonic Function DC READ Reads data from memory in the Data Carrier DC WRITE Writes data to memory in the Data Carrier DC AUTOREAD Waits for approach of a Data Carrier and then reads data DC AUTOWRITE Waits for approach of a Data Carrier and then writes data DC CLEAR Initializes memory in the Data Carrier with the specified data DC MANAGE DATA Checks memory in the Data Carrier Also manages the write life in EEPROM Data Carriers The ID Controller is equipped with the following interrupt functions e ID communications response interrupt for ID communications responses e Input interrupts for external input signals e Interval timer interrupts for internal timers e High speed counter interrupts for an internal counter Equipped with both a peripheral and an RS232 port the ID Controller can com municate with external devices using the following methods Host Link Communications or NT Links Communications by Host Link commands is enabled by connecting the ID Con troller to a Programmable Terminal PT personal computer or other device RS 232C Devices Data can be read from bar code readers measuring instruments and other de vices and data can be output to a printer 1 1 Link Systems Data areas can be linked by connecting the ID Controller to other ID Controller In this setup operating status can be synchronized while the status of other equipment
86. the following diagrams if required for RS 232C communications This setting is required only for RS 232C communications To use RS 232C communications the RS 232C must be specified as the communications mode and the commu nications parameters must be set see next section Enabling Start and End Codes DM 6648 RS 232C port PI To 9 DM 6653 Peripheral port 0 0 End code 0 Not set Amount of reception data specified 1 Set End code specified 2 CR LF Start code 0 Not set 1 Set Start code specified Defaults No start code data reception complete at 256 bytes Specify whether or not a start code is to be set at the beginning of the data and whether or not an end code is to be set at the end Instead of setting the end code it is possible to specify the number of bytes to be received before the re ception operation is completed Both the codes and the number of bytes of data to be received are set in DM 6649 or DM 6654 Setting the Start Code End Code and Amount of Reception Data Bit 15 0 DM 6649 RS 232C port DM 6654 Peripheral port l End code or number of bytes to be received For end code 00 to FF For amount of reception data 2 digits hexadecimal 00 to FF 00 256 bytes Start code 00 to FF Defaults No start code data reception complete at 256 bytes Communications Procedure Transmissions 1 2 3 1 Check to see that AR 0805 the RS 232C P
87. the illustrated cables CQM1 Programming Console CQM1 PROO1 E C series Programming Console C200H PRO27 E Use enclosed cable Connecting Cable C200H CN222 2 m C200H CN422 4 m a Do d 2 2 7 Connecting External Devices via RS 232C Port Peripheral port Various types of devices can be connected to the ID Controller via the RS 232C A few examples are shown in the following illustration Host link Personal computer RS 232C Devices Printer Bar Code Reader System Configuration and Installation Section 2 2 RS 232C Port Specifications The specifications for the RS 232C port are given below Devices that meet these specifications can be connected Connector Pin Assignments Pin assignments for the RS 232C port are given in the following table Abbreviation Direction 1 Field ground FO 6 2 Send data Output O O 3 Receive data Input O O 4 Request to send Output O O 9 5 Clear to send Input Sp 6 Not used 7 Not used 8 Not used 9 Signal ground Connector fitting Field ground Personal Computer The connections between the ID Controller and a personal computer are illus trated below as an example ID Controller Personal Computer Signal Pin Pin Signal No No FG 1 1 SD 2
88. the transmission has not been corrupted A pulse available at specific bits in memory for use in timing operations Various clock pulses are available with different pulse widths and therefore different fre quencies A bit in memory that supplies a pulse that can be used to time operations Vari ous clock pulse bits are available with different pulse widths and therefore differ ent frequencies Cable used to transfer data between components of a control system and con forming to the RS 232C or RS 422 standards A flag used with a timer or counter that turns ON when the timer has timed out or the counter has reached its set value A symbol placed on an instruction line to indicate an instruction that controls the execution condition for the terminal instruction Each condition is assigned a bit in memory that determines its status The status of the bit assigned to each con dition determines the next execution condition Conditions correspond to LOAD LOAD NOT AND AND NOT OR or OR NOT instructions An input for an operand in which the actual numeric value is specified Constants can be input for certain operands in place of memory area addresses Some op erands must be input as constants A bit in a memory area that is set either through the program or via a Program ming Device to achieve a specific purpose An operand that specifies how an instruction is to be executed The control data may specify the part of a word is to
89. time in 2 digits BCD Valid only when a Memory Cassette with the clock function is installed 00 to 07 Seconds portion of the present time in 2 digits BCD Valid only when a Memory Cas sette with the clock function is installed 08 to 15 Minutes portion of the present time in 2 digits BCD Valid only when a Memory Cas sette with the clock function is installed 00 to 07 Hour portion of the present time in 2 digits BCD Valid only when a Memory Cassette with the clock function is installed 08 to 15 Date portion of the present time in 2 digits BCD Valid only when a Memory Cassette with the clock function is installed 00 to 07 Month portion of the present time in 2 digits BCD Valid only when a Memory Cas sette with the clock function is installed 08 to 15 Year portion of the present time in 2 digits BCD Valid only when a Memory Cassette with the clock function is installed 00 to 07 Day of week portion of the present time in 2 digits BCD 00 Sunday to 06 Saturday Valid only when a Memory Cassette with the clock function is installed 08 to 12 Not used 13 30 second Adjustment Bit Valid only when a Memory Cassette with the clock function is installed 14 Clock Stop Bit Valid only when a Memory Cassette with the clock function is installed 15 Clock Set Bit Valid only when a Memory Cassette with the clock function is insta
90. to begin comparisons 107 Using Interrupts Section 5 5 The following diagram shows the structure of a target value comparison table for use with the high speed counter 0001 to 0016 One target value setting Note The subroutine number can be F000 to F127 to activate the subrou tine when decrementing and 0000 to 0127 to activate the subroutine when incrementing The following diagram shows the structure of a range comparison table for use with the high speed counter First range setting Eighth range setting Note The subroutine number can be 0000 to 0127 and the subroutine will be executed as long as the counter s PV is within the specified range A value of FFFF indicates that no subroutine is to be executed 2 To stop comparisons execute the INI instruction as shown below To start comparisons again set the second operand to 000 execute compari son and execute the INI instruction Once a table has been saved it will be retained in the ID Controller during opera tion i e during program execution as long as no other table is saved Reading the PV There are two ways to read the PV The first is to read it fom SR 230 and SR 231 and the second to use the PRV instruction Reading SR 230 and SR 231 The PV of the high speed counter is stored in SR 230 and SR 231 as shown be low The leftmost bit will be F for negative values Leftmost 4 digits Rightmost 4 digits Up Dow
91. troller Check operation by using a dummy input signal to turn the input ON and OFF Operation O K Yes Replace the ID Con Check input devices Return to start troller LS1 and LS2 187 Troubleshooting Flowcharts Section 9 9 Environmental Conditions Check 188 Environmental conditions check Is the ambien temperature below 55 C Consider using a fan or cooler Is the ambient temperature above 0 C Consider using a heater s the ambient humidit between 10 and 90 Consider using an air conditioner Install surge pro tectors or other noise reducing equipment at noise sources Is noise being controlled Consider constructing an instrument panel or cabinet s the installation envi ronment okay Appendix A Standard Models ID Controllers Name Model Number ID Controller IDSC C1DR A E Relay contact outputs IDSC C1DT A E Transistor outputs Peripheral Devices Model Number Specifications Programming Console CQM1 PRO01 E 2 m Connecting Cable attached C200H PRO27 E Hand held w backlight requires the C200H CN222 or C200H CN422 see below Ladder Support Software C500 SF312 EV3 3 5 2HD for IBM PC AT compatible C500 SF711 EV3 5 25 2D for IBM PC AT compatible SYSMAC Support Software C500 ZL3AT1 E 3 5 2HD for IBM PC AT compatible Connecting Cable CQM1 CIF02 Connects IBM PC AT or compatible computers to
92. used to service peripheral 08 to 15 Peripheral port servicing setting enable 00 Do not set service time 120 ms default 01 Use time in 00 to 07 64 ID Controller Setup DM 6618 00 to 07 Function Cycle monitor time effective when bits 08 to 15 are set to 01 02 or 03 00 to 99 BCD Setting see 08 to 15 08 to 15 Cycle monitor enable Setting in 00 to 07 x unit 99 s max 00 120 ms default setting in bits 00 to 07 disabled 01 Setting unit 10 ms 02 Setting unit 100 ms 03 Setting unit 1 s Section 5 1 DM 6619 00 to 15 Cycle time 0000 Variable default no minimum 0001 to 9999 BCD Minimum time in ms Interrupt Processing DM 6620 to DM 6639 The following settings ar e effective after transfer to the ID Controller the next time operation is started DM 6620 00 to 03 Input constant for IR 00000 to IR 00007 0 8 ms 1 1 ms 2 2 ms 3 4 ms 4 8 ms 5 16 ms 6 32 ms 7 64 ms 8 128 ms 04 to 07 Input constant for IR 00008 to IR 00015 Setting same as bits 00 to 03 08 to 15 Reserved DM 6621 to DM 6627 00 to 15 Reserved DM 6628 00 to 03 Interrupt enable for IR 00000 0 Normal input 1 Interrupt input 04 to 07 08 to 11 Interrupt enable for IR 00001 0 Normal input 1 Interrupt input Interrupt enable for IR 00002 0 Normal input 1 Interrupt input 12 to 15 Interr
93. 0 ee eee eee 79 5 3 8 Writing Data Carriers IDWT 62 IDAW 64 0 0 80 5 3 9 Cancelling DC AUTOREAD and DC AUTOWRITE 82 5 3 10 Clearing Data Carriers IDCA 65 0 0 eee tenes 82 5 3 11 Checking Data Carriers IDMD 66 eseeee ee eee 83 5 3 12 Interrupt Refresh Program siss racicas tacia eiia ee eee 85 5 4 Advanced I O Instructions secre arein orep ers 86 5 4 1 TEN KEY INPUT TKY 0 0 0 ccc cee 86 5 42 HEXADECIMAL KEY INPUT HKY 20 0 00002 88 5 4 3 DIGITAL SWITCH INPUT DSW 2 2 0 nee 89 5 4 4 7 SEGMENT DISPLAY OUTPUT 7SEG 0 0 00 eee eee 91 5 4 5 Alternate VO Bits 0 cece cee n 93 525 Using Interrupts id gle eae eee ees ane EE RE 94 5 5 1 Types of Interrupts cs iaa RR eh RR eR IRE 94 5 5 2 ID Communications Response Interrupts 00 0 00 02 ee eee 96 5 373 Input Interrupts 4 uos idum ULP uU es RR PRAES 96 5 5 4 Masking All Interrupts essere eiser edie RII 101 5 5 5 Interval Timer Interrupts 0 0 ee eee ee 101 5 5 6 High speed Counter Interrupts 0 00 cece eee eee eee 104 2 6 Communica ons ei ses rep ia ee SRA ERRAT OR REN Le ee NA ed 110 5 6 1 ID Controller Setup creso triana Ea ea TRA E I 111 5 6 2 Host Link and RS 232C Communications Parameters oo ooooooooo 111 5 6 3 Host Link Communications oo ooooooorrr eens 112 5 6 4 RS 232C Communi
94. 00 to DM 6614 when power was turned on Correct the settings in PROGRAM Mode and turn on the power again AR 2401 ON An incorrect setting was detected in the ID Controller Setup DM 6615 to DM 6644 when switching to RUN Mode Correct the settings in PROGRAM Mode and switch to RUN Mode again AR 2402 ON An incorrect setting was detected in the ID Controller Setup DM 6645 to DM 6655 during operation Correct the settings and clear the error SCAN TIME OVER Watchdog timer has exceeded 100 ms SR 25309 will be ON This indicates that the program cycle time is longer than recommended Reduce cycle time if possible or adjust the setting in DM 6655 if necessary BATT LOW Communication Errors Output Inhibit 9 5 2 Fatal Errors Indicator Status Message Power interruption no message Backup battery is missing or its voltage has dropped SR 25308 will be ON Check the battery and replace if necessary Check the ID Controller Setup DM 6655 to see whether a low battery will be detected If an error occurs in communications through the peripheral port or RS 232C port the corresponding indicator COM1 or COMO will stop flashing Check the connecting cables as well as the programs in the ID Controller and host comput er Reset the communications ports with the Port Reset Bits SR 25208 and SR 25209 When the OUT INH indicator is lit the Output Inhibit Bit SR 25215 is ON and all outputs from the
95. 002 00003 A 0700 N Caution The shorter clock pulses will not necessarily produce accurate timers because their short ON times might not be read accurately during longer cycles In partic ular the 0 02 second and 0 1 second clock pulses should not be used to create timers with CNT instructions Selected Special Instructions Section 6 5 6 5 Selected Special Instructions 6 5 1 END END 01 Ladder Symbol END 01 Description END 01 is required as the last instruction in any program If there are subrou tines END 01 is placed after the last subroutine No instruction written after END 01 will be executed END 01 can be placed anywhere in the program to execute all instructions up to that point as is sometimes done to debug a pro gram but it must be removed to execute the remainder of the program If there is no END 01 in the program no instructions will be executed and the error message NO END INST will appear Flags END 01 turns OFF the ER CY GR EQ and LE Flags 6 5 2 COMPARE CMP 20 Ladder Symbols Operand Data Areas Cp1 First compare word Cp2 Second compare word Description When the execution condition is OFF CMP 20 is not executed When the exe cution condition is ON CMP 20 compares Cp1 and Cp2 and outputs the result to the GR EQ and LE Flags in the SR area Precautions When comparing a value to the PV of a timer or counter the value must be in BCD Placing other instructions b
96. 3 Note Memory Capacity of More Than 256 Bytes It is recommended that important data be write protected as follows The write protect function is set in addresses 0002 to 0005 of the Data Carrier s memory The most significant bit of address 0002 determines whether or not the write protect function is in effect Address YES First leftmost 2 digits of start address NO Last rightmost 2 digits of start address First leftmost 2 digits of end address Last rightmost 2 digits of end address Write protect execution bit most significant bit of address 0002 1 Write protected 0 Not write protected The start address can be set between 0006 and 7FFF The end address can be set between 0006 and FFFF 1 If the setting of the end address exceeds the last address in the Data Carrier protection will still be in effect through the last address 2 If the start address is larger than the end address two areas will be pro tected from 0006 through the end address and from the start address through the last address in the Data Carrier 5 3 5 Data Carrier Life Detection Functions SRAM Data Carriers N Caution EEPROM Data Carriers A check on the service life of batteries can be executed by reading two bytes of data from an address between 0000 to 0001 of the Data Carrier After the data is read the results of the battery check will be reflected in the status of SR 23306 DC Battery Warning Flag Thi
97. 61 55 Data Area Structure 4 1 Data Area Input area Output area Data Area Structure Section 4 1 The following memory areas can be used with the ID Controller 32 bits IR 000 to IR 015 IR 00000 to IR 01515 IR 100 to IR 115 IR 10000 to IR 11515 Function Allocated to I O terminals Work areas 3 584 bits min IR 001 to IR 095 IR 00100 to IR 09515 IR 101 to IR 195 IR 10100 to IR 19515 IR 200 to IR 229 IR 20000 to IR 22915 IR 240 to IR 243 IR 24000 to IR 24315 Work bits do not have any specific function and they can be freely used within the program MACRO operand area Input area 64 bits IR 096 to IR 099 IR 09600 to IR 09915 Output area 64 bits IR 196 to IR 199 IR 19600 to IR 19915 Used when the MACRO instruc tion MCRO 99 is used When the MACRO instruction is not used these bits may be used as work bits High speed Counter Pv 32 bits IR 230 to IR 231 IR 23000 to IR 23115 Used to store the present values of the high speed counter ID Con Read Write troller area 16 bits SR 232 SR 23200 to SR 23215 Read only 112 bits SR 233 to SR 239 SR 23300 to SR 23915 Used for ID communications Re fer to 4 3 ID Controller Area and 5 3 ID Communications for details SR area Read Write 144 bits SR 244 to SR 252 SR 24400 to SR 25215 Read only 48 bits SR 253 to
98. AND LOAD instruction except that the current execution condi tion is ORed with the last unused execution condition Instruction es maci n Operans oo oo 00005 msme Naturally some diagrams will require both AND LOAD and OR LOAD instruc tions 6 2 6 Differentiated Instructions Diagram A Diagram B Most instructions are provided in both differentiated and non differentiated forms Differentiated instructions are distinguished by an Q in front of the in struction mnemonic A non differentiated instruction is executed each time it is scanned as long as its execution condition is ON A differentiated instruction is executed only once af ter its execution condition goes from OFF to ON If the execution condition has not changed or has changed from ON to OFF since the last time the instruction was scanned the instruction will not be executed The following two examples show how this works with MOV 21 and MOV 21 which are used to move the data in the address designated by the first operand to the address designated by the second operand MOV 21 HR 10 DM 0000 MOV 21 HR 10 DM 0000 In diagram A the non differentiated MOV 21 will move the content of HR 10 to DM 0000 whenever it is scanned with 00000 If the cycle time is 80 ms and 00000 remains ON for 2 0 seconds this move operation will be performed 25 times and only the last value moved to DM 0000 will be preserved the
99. Carriers without being affected by the scan time of the ID Controller To execute subroutines upon completion of ID communications set the ID com munications response refresh method in bit 04 to 07 of DM 6611 to 1 This set ting must be made with the ID Controller in PROGRAM mode before the pro gram is executed If you do not make this setting interrupts will not be generated at the completion of ID communications and execution results will be refreshed only once each scan Bit 15 0 DM 6611 ID communications response interrupts 0 No interrupts 1 Interrupts enabled Default No interrupts Note Subroutines 004 through 009 can be used as normal subroutines if ID commu nications response interrupts are not being used 5 5 3 Input Interrupts Processing 96 The ID Controller s inputs allocated IR 00000 to IR 00003 can be used for inter rupts from external sources Input interrupts O through 3 correspond respective ly to these bits and are always used to call the subroutines numbered 000 through 003 respectively When input interrupts are not used subroutine num bers 000 to 003 can be used for ordinary subroutines There are two modes for processing input interrupts The first is the Input Interrupt Mode in which the interrupt is carried out in re sponse to an external input In the Input Interrupt Mode signals with a length of 100 us or more can be detected The second is the Counter Mode
100. Class 3 ground to 100 Q orless Where 1 I O wiring 2 General control wiring 3 Power cables Do not mount the ID Controller in a control panel in which high power equipment is installed To avoid noise make sure the point of installation is at least 200 mm away from power lines as shown in the following diagram Ensure that the plate to which the ID Controller is mounted is grounded Power lines 200 mm min ID Controller 200 mm min 17 System Configuration and Installation Section 2 2 Mounting Direction Always mount the ID Controller with the cooling vents facing up Never mount it on it s side or end Correct 2 2 3 Terminal Blocks The I O Controller s terminal blocks are removable Be sure that the connector tabs are in the locked position as shown in the following diagram CES QU SCD To remove the terminal block push the connector tabs to the sides and lift the terminal block off of the connector as shown in the following diagram Open the tabs as widely as necessary 6 2 mm max CAN 6 2 mm max Al gt O N Caution Forked crimp connectors are required by UL and CSA standards 2 2 4 1 0 Wiring Precautions The following must be considered when connecting electrical devices to I O ter minals leakage currents inrush currents noise and inductive loads N Caution Tighten the terminal screws to a torque of 0 5 to 0 6 Nm N WARNING Do not
101. Console keys are pressed This buzzer will also sound whenever an error occurs during ID Controller operation Buzzer operation for errors is not affected by this setting This operation is possible in any mode RUN MONITOR PROGRAM Follow the procedure below to turn the key input buzzer on and off 1 Press the CLR SHIFT and then the CLR Key to bring up the mode display In this case the ID Controller is in PROGRAM mode and the buzzer is on 2 Press the SHIFT and then the 1 Key to turn off the buzzer SHIFT 3 Press the SHIFT and then the 1 Key again to turn the buzzer back on B It is possible to adjust the buzzer volume on the C200H PRO27 E using the vol ume control lever on the side of the Programming Console 3 3 6 Reading and Changing Expansion Instructions This operation is used to read and change the function codes assigned to certain instructions It is possible to read the function code assignments in any mode but the assignments can be changed in PROGRAM mode only Operation RUN MONITOR PROGRAM OK OK N Caution Note Reading OK Changing No No OK Be sure to change function code assignments before inputting the program The ID Controller will not operate properly if the function codes in the program are assigned incorrectly 1 Two function codes cannot be assigned to a single instruction 2 Be sure that pin 4 of the ID Controller s DIP swi
102. Controller I O refresh meth ods are as shown in the following table Input Output I O refresh method Function Cyclic refresh Input refresh is executed at a set time once per cycle Interrupt input refresh Input refresh is executed before execution of the interrupt processing rou tine whenever an input interrupt interval timer interrupt or high speed counter interrupt occurs The cyclic refresh is also executed Cyclic refresh Output refresh is executed at a set time once per cycle Direct refresh When there is an output from the user s program that output point is im mediately refreshed The cyclic refresh is also executed The initial status of the ID Controller I O refresh is as follows Input Only cyclic refresh executed Output Only cyclic refresh executed Cyclic refresh must be executed for both inputs and outputs If input refresh is to be executed at the time of interrupts then set the input refresh range in the ID Controller Setup DM 6630 to DM 6638 Direct refresh can be set in DM 6639 of the ID Controller Setup In addition to the methods described above it is also possible to execute I O re freshes in the program by means of IORF 97 Note Refer to the CQM1 Programming Manual for information on IORF 97 8 2 Computing the Cycle Time This section describes how to calculate ID Controller cycle time The processes involved in a single ID Controller cycle are shown in the following table
103. DIMENSIONS 2 eerte epe RU REESE RUNE SR RE NUR DU Nie ee 193 D SR and AR Area Allocations 0 0 cece teen le 195 E Extended ASCI i creux ups E ER EEUU RR HR RECS RE oes 201 Glossary cia ere erae reser 203 Md eeskgivaeverensecadque eR daran aa 217 Revision History vcd 223 About this Manual This manual describes the installation and operation of the IDSC C1DR AE and IDSC C1DT AE ID Con trollers and includes the sections described below These ID Controllers provide complete Programmable Controller PC functionality and use a electromagnetic coupling system to enable construction of non contact information recognition IDentification systems Although this is the only manual provided specially for the ID Controllers the following manuals must be referenced as required when setting up programming installing and operating an ID Controller System Information on Manual Constructing ID Systems including informa V600 FA ID Sensor Serial Interface tion on Read Write Heads Data Carriers etc Operation Manual Z44 V600 FA ID Sensor Parallel Interface Operation Manual Z45 Programmable Controllers CQM 1 Programmable Controller Programming Manual W228 Inputting programs or operating PCs SYSMAC C Series PC Ladder Support Software Operation Manual W237 Please read this manual and the related manuals carefully and be sure you understand the information provided before attempting to install and operate an ID Controller
104. E 04 instruction is missing for a JMP 05 instruction Correct UNDEFD the jump number or insert the proper JME 04 instruction DUPL The same jump number or subroutine number has been used twice Correct the program so that the same number is only used once for each SBN The SBS 91 instruction has been programmed for a subroutine UNDEFD number that does not exist Correct the subroutine number or program the required subroutine STEP ERR STEP 08 with a section number and STEP 08 without a section number have been used incorrectly Check STEP 08 programming requirements and correct the program 173 User defined Errors Section 9 4 Level B Errors Level C Errors N Caution Message Meaning and appropriate response IL ILC ERR IL 02 and ILC 03 are not used in pairs Correct the program so that each IL 02 has a unique ILC 03 Although this error message will appear if more than one IL 02 is used with the same ILC 03 the program will executed as written Make sure your program is written as desired before proceeding JMP 04 00 and JME 05 00 are not used in pairs Although this error message will appear if more than one JMP 04 00 is used with the same JME 05 00 the program will be executed as written Make sure your program is written as desired before proceeding If the displayed address is that of SBN 92 two different subroutines have been defined with the same subroutine number C
105. K 01 2 4K 02 4 8K 03 9 6K 04 19 2K 08 to 15 Frame format Start Length Stop Parity 00 1 bit 7 bits 1 bit Even 1 bit 7 bits 1 bit Odd 1 bit 7 bits 1 bit None 1 bit 7 bits 2 bit Even 1 bit 7 bits 2 bit Odd 1 bit 7 bits 2 bit None 1 bit 8 bits 1 bit Even 1 bit 8 bits 1 bit Odd 1 bit 8 bits 1 bit None 1 bit 8 bits 2 bit Even 1 bit 8 bits 2 bit Odd 1 bit 8 bits 2 bit None DM 6647 00 to 15 Transmission delay Host Link 0000 to 9999 BCD Set in units of 10 ms e g setting of 0001 equals 10 ms DM 6648 00 to 07 Node number Host link 00 to 31 BCD default 00 08to 11 Start code enable RS 232C 0 Disable default 1 Set 12to 15 End code enable RS 232C 0 Disable default number of bytes received 1 Set specified end code 2 CR LF 66 ID Controller Setup DM 6649 00 to 07 Function Start code RS 232C 00 to FF binary Section 5 1 08 to 15 12 to 15 of DM 6648 set to 0 Number of bytes received 00 Default setting 256 bytes 01 to FF 1 to 255 bytes 12 to 15 of DM 6648 set to 1 End code RS 232C 00 to FF binary Peripheral Port Settings The following settings are effective after transfer to the ID Controller DM 6650 00 to 07 Port settings 00 Standard 1 start bit 7 bit data even parity 2 stop bits 9 600 bps 01 Settings in DM 6651 08 to 11 Reserved 12 to 15 Communications mode
106. Key until all error mes sages have been cleared Refer to page 40 Press the CLR Key to bring up the initial programming display program ad dress 00000 The following diagram shows which keys to press in order to change Program ming Console displays Example mode display connected to ID Controller The ID Controller s oper ating mode will be dis played CLR SHIFT CLR or switch modes Initial programming display Press several times See note Various operational displays Note When cancelling an operation or beginning operation press the CLR Key sever al times to return to the initial display After the SHIFT Key is pressed changing the mode by means of the mode change switch will cause the mode to change while retaining the current display When switching between RUN and PROGRAM first go into MONITOR and press the SHIFT Key again Programming Console Operations Section 3 3 3 3 Programming Console Operations 3 3 1 Testing ID Communications Note 1 2 3 N Caution This operation can be used to show the status of errors generated by executing either a read or a write communications operation repeatedly every second for a specific Data Carrier address In the read test one byte is read from the Data Carrier repeatedly while in the write test one byte is written to the Data Carrier repeatedly This operation is possible in PROGRAM mode only R
107. Mode set in bits 00 to 07 Startup Mode Bits 08 to 15 Valid when bits 00 to 07 are set to 02 00 PROGRAM mode 01 MONITOR mode 02 RUN mode Default Programming Console Mode Selector or RUN mode when Programming Console is not connected Hold Bit Status DM 6601 Make the settings shown below to determine whether when the power supply is turned on the Forced Status Hold Bit SR 25211 and or IOM Hold Bit SR 25212 will retain the status that was in effect when the power was last turned off or whether the previous status will be cleared Bit 15 0 T DM6601 0 0 l ENT SR 25211 setting Always 00 0 Clear status 1 Retain status SR 25212 setting 0 Clear status 1 Retain status Default Clear both The Forced Status Hold Bit SR 25211 determines whether or not the forced set reset status is retained when changing from PROGRAM mode to MONITOR mode The IOM Hold Bit SR 25212 determines whether or not the status of IR bits and LR bits is retained when ID Controller operation is started and stopped RS 232C and Peripheral The following settings are used to determine the percentage of the cycle time Port Servicing Times devoted to servicing the RS 232C port and the percentage devoted to the pe DM 6616 and DM 6617 ripheral port Bit 15 0 T T RS 232C port DM 6616 DM6616 DM6617 Peripheral port DM 6617 a Servicing time setting enable 00 Disabled 5 used 01 Enabl
108. No Memory Cassette installed 1 EEPROM 4K word Memory Cassette installed 2 EEPROM 8K word Memory Cassette installed 4 EPROM type Memory Cassette installed 08 to 15 Not used 00 ID Controller to Memory Cassette Transfer Bit Turn ON for transfer from the ID Controller to the Memory Cassette Automatically turns OFF again when operation is complete Memory Cassette to ID Controller Transfer Bit Turn ON for transfer from the Memory Cassette to the ID Controller Automatically turns OFF again when operation is complete Memory Cassette Compare Flag ON when the contents of the ID Controller and the Memory Cassette are being compared Turns OFF automatically when comparison has completed Memory Cassette Comparison Results Flag ON Difference found or comparison not possible OFF Contents compared and found to be the same 04to 11 Not used 12 PROGRAM Mode Transfer Error Flag Turns ON when transfer could not be executed due to being in PROGRAM mode 13 Write protect Error Flag Turns ON when transfer could not be executed due to write protection 14 Insufficient Capacity Flag Turns ON when transfer could not be executed due to insufficient capacity at the trans fer destination No Program Flag Turns ON when transfer could not be executed due to there being no program in the Memory Cassette 00 to 07 Memory Cassette Program Code Code 2 digit number indicates
109. Pin 2 Setting Install an EPROM chip onto the Memory Cassette as shown in the following dia gram 14 System Configuration and Installation Section 2 2 2 2 System Configuration and Installation 2 2 1 Basic Configuration The basic components of an ID Controller System are shown in the following il lustration Input Terminals Output Terminals transistor or contact V600 series Read Write Head R W Head Elec Power Supply V600 series Data tromagnetic Coupling Carrier DC Read Write Head Connector RS 232C Port Peripheral Port See note See note Note These ports can be connected to a Programming Console CQM1 PROO1 E or C200H PRO27 E or to an IBM PC AT or compatible computer running Ladder Support Software or SYSMAC Support Software ID Controller I O points 32 Program capacity 3 2K words Data memory 6K words ID Communications Connectable R W Heads 1 Data transmission capacity 256 bytes max Communications instructions Six for ID communications Power Supply Voltage 100 to 240 VAC Power supply capacity 3 6 A 18 W at 5 VDC Input Terminals Number of inputs 16 Voltage 24 V Output Terminals See following table Transistor outputs Contact outputs Number of outputs 16 16 Voltage 4 5 to 26 4 V 250 VAC 24 VDC Max switching capacity 0 3A 2 A 8 A total 15 System Configuration and Installation Section 2 2 2 2 2 Installation Precautions Cauti
110. RR ALM indi ator flashing2 Not lit Replace the ID Controller 185 Troubleshooting Flowcharts Section9 9 1 0 Check The I O check flowchart is based on the following ladder diagram section LS1 LS2 00002 00003 SOL1 10000 SOL1 malfunction Is the IR 10000 out put indicator operat ing normally2 Yes Check the voltage at the IR 10000 terminals Wire correctly Is output wiring correct Replace terminal Monitor the ON OFF connector status of IR 10000 with a Peripheral Device Is termina block making prop er contact Operation O K Operation O K To next page Disconnect the external wires and check the conductivity of each wire Operation O K Replace the ID Con troller Check output device SOL1 186 Troubleshooting Flowcharts Section 9 9 No Are the IR 00002 and IR 00003 input indi cators operating a normally rom previous Yes page Check the voltage at the IR 00002 and IR Check the voltage at the IR 00002 and IR 00003 terminals Are the terminal Screws loose 00003 terminals No Is termina Yes block making proper contact Operation O K Yes Operation No O K No Yes e Is input wiring correct No Wire correctly Tighten the terminal Replace terminal screws connector Replace the ID Con
111. SR 255 SR 25300 to SR 25515 These bits serve specific functions such as flags and control bits Can be used as work bits but not as holding bits TR area 8 bits TROtoTR7 These bits are used to temporarily store ON OFF status at program branches 1 600 bits HR 00 to HR 99 HR 0000 to HR 9915 These bits store data and retain their ON OFF status when power is turned off AR area 448 bits AR 00 to AR 27 AR 0000 to AR 2715 These bits serve specific functions such as flags and control bits LR area 1 024 bits LR 00 to LR 63 LR 0000 to LR 6315 Used for 1 1 data link through the RS 232 port Timer Counter area 512 bits TC 000 to TC 511 timer counter numbers The same numbers are used for both timers and counters DM area Read write 6 144 words DM 0000 to DM 6143 DM area data can be accessed in word units only Word values are retained when the power is turned off Read only 512 words DM 6144 to DM 6655 Cannot be overwritten from program DM 6450 to DM 6540 91 words ID Error Log DM 6541 to DM 6546 6 words ID Error Statistics Log DM 6569 to DM 6599 Error History Area DM 6600 to DM 6655 ID Controller Setup User program area UM area 56 Note Used to store the program Retained when the power is turned off 1 IR and LR bits that are not used for their allocated functions can be used as work bits
112. SV The PV will not be decremented while R is ON Counting down from SV will begin again when R goes OFF The PV for CNT will not be reset in interlocked program sections or by power interruptions 143 Basic Instructions Section 6 4 Precautions Flags Example 144 00000 25502 Changes in execution conditions the Completion Flag and the PV are illus trated below PV line height is meant only to indicate changes in the PV Execution condition ON on count pulse CP oer LI LI LI Execution condition ON o Y on reset R Completion Flag PV 0001 0000 Each TC number can be used as the definer in only one TIMER or COUNTER instruction Program execution will continue even if a non BCD SV is used but the SV will not be correct ER SV is not in BCD Indirectly addressed DM word is non existent Content of x DM word is not BCD or the DM area boundary has been exceeded In the following example CNT is used to create extended timers by combining counting SR area clock pulse bits CNT 001 counts the number of times the 1 second clock pulse bit SR 25502 goes from OFF to ON Here again IR 00000 is used to control the times when CNT is operating Because in this example the SV for CNT 001 is 700 the Completion Flag for CNT 001 turns ON when 1 second x 700 times or 11 minutes and 40 seconds have expired This would result in IR 10202 being turned ON address Instruction Operands 00000 00
113. UN MONITOR PROGRAM No No OK Data contained in the Data Carrier will not be overwritten so the test can be used for checks and other operations at system startup At the same time this func tion can also perform various adjustment tests such as on site adjustment of the distance between the Data Carriers and the Read Write Head 1 Monitor the content of word SR 234 in the ID controller sur 2H G D E Z 2 3 4 MoNrR 2 Display bit SR 23209 and select the test mode read or write by turning SR 23209 ON or OFF with the Set or Reset Key A read test is specified in the following example Read test Turn OFF SR 23209 Write test Turn ON SR 23209 CONT C D C A SHIFT 2 3 2 0 MONTR REC RESET 3 Display bit SR 23208 and turn it ON to start the test CONT c D C A SHIFT 2 3 2 0 MONTR PLAY SET During the test the T R indicator for the ID function will flash and the test results will be placed in word SR 234 as shown below FFFF ID communication in progress 0x00 Normal end Oxxx Error end 4 Refer to D Communications Errors on page 178 for the meaning of error messages and error codes 5 When the next communication is executed normally the error display will automatically leave the screen 6 Turn off bit 23208 to cancel the test or before shifting to the another opera tion The following display shows a normal ending for the test
114. a Carrier that is being used Refer to your Data Carrier manual for details The content of the control data C must be within the specified ranges see above table Flags ER The number of bytes to read bits 00 to 11 in control data is not BCD or is out of range Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded SR 23200 ID Ready Flag was OFF or another ID communications instruction was being executed 23300 OFF while instruction is being executed ON when executed has been completed 23301 OFF while instruction is being executed ON when executed has been completed 23302 ON when an error has occurred in ID communications 23306 ON when the end of the service life of the Data Carrier battery has been detected 23308 to 23313 Indicate error type with 23302 is ON Example Refer to page 79 for an example 135 ID Communications Instructions Section 6 3 6 3 2 DC WRITE and DC AUTOWRITE IDWT 62 IDAW 64 DC WRITE Operand Data Areas Ladder Symbols D First destination address HEX IR SR AR DM HR TC LR C Control data S First source word DC AUTOWRITE Operand Data Areas Ladder Symbols D First destination address HEX IR SR AR DM HR TC LR C Control data S First source word Description IDWT 62 and IDAW 64 are used to write data to Data Carriers IDWT 62 reads data from one or more word
115. a Carriers Priority to Communications Speed Reference 2 000 F IDWT 62 or IDAW 64 Te 1 500 1 000 500 Communications time ms IDAR 63 or IDRD 61 100 200 300 Number of bytes N Instruction ID communications time ms IDAR 63 T 1 8 x N 79 0 IDAW 64 T2 7 1 x N 180 4 169 SECTION 9 Troubleshooting This section describes how to diagnose and correct the hardware and software errors that can occur during ID Controller op eration and how to create user errors based on program execution 9 Introd ction 11r e ete ii RACE Tees iS 172 9 2 Programming Console Operation Errors 0 0 cece eee eee 173 9 3 Programming ErTOrS ss cou luc a a ERES RU dep ea 173 9 4 User defined Errors iur e eR PEE AE ERES EE E GUN EN IERI NILUS 174 9 5 Operating Errors ii A be eo A ib ee entere 175 9 5 1 Nonzfatal Errors os C Rt REI ES nk aA 175 9 5 2 Fatal Errors vez A e NIU eC Rs 176 9 6 ID Indicators oi A A AA ede au 177 9 6 1 Non fatal Communications Errors 0 0 0 00 cece teens 177 9 6 2 Fatal Errors 00 0 DX RR ROUGE Ra eee 177 9 7 ID Controller Flags cemere RR eere hae RR ee Pala ae Ree gue ee 178 9 8 TD Error Loss hastae aa anea a IS Row UU eR e 179 9 9 Troubleshooting Flowcharts o ooooocococcocoroco eens 181 171 Introduction Section 9 1 9 1 172 Introduction 1 2 3 Note ID Controll
116. a clock function the date and time will be displayed as all zeros NO1 The error log data number Here N30 is the most recent and NO1 is the oldest error The command that generated the error In this case it is IDRD The following displays will appear for ID communications instructions RD IDRD WT IDWT MD IDMD AR IDAR AW IDAW CA IDCA The error message Refer to 1 1 3 ID Controller Functions for the meaning of error messages 3 Press the Down Cursor Key shifts the display from the current position to the next most recent error Pressing the Up Cursor Key shifts the display from the current position to the oldest error Pressing the Up Cursor Key with NO1 data displayed displays N30 data and pressing the Down Cursor Key with N30 data displayed displays NO1 data 4 Press the Clear Key to leave the ID error log display and returns to the initial display The following display will appear when there are no ID error logs Programming Console Operations Section 3 3 The following display will appear while reading the ID communications error log ID errors are displayed by pressing the shift key and the monitor key in that order Displaying ID Error Statistics Log 1 2 3 1 Press the Shift Key and the Monitor Key to display ID error menu 2 Press the 2 Key to display the ID error statistics log The different portions of th
117. ad 6 2 Basic Programming Concepts 6 2 1 Notation All instructions are referred to by their mnemonics For example the OUTPUT instruction will be called OUT the AND LOAD instruction AND LD If an instruction is assigned a function code it will be given in parentheses after the mnemonic These function codes which are 2 digit decimal numbers are used to input most instructions into the ID Controller Expansion instructions that are not allocated function codes by default appear with dashes in place of the function code to indicate that they must be allocated function codes before they can be used for example PULS An Q before a mnemonic indicates the differentiated version of that instruction Differentiated instructions are explained in Section 6 2 6 6 2 2 Instruction Format Most instructions have at least one or more operands associated with them Op erands indicate or provide the data on which an instruction is to be performed These are sometimes input as the actual numeric values i e as constants but are usually the addresses of data area words or bits that contain the data to be used A bit whose address is designated as an operand is called an operand bit a word whose address is designated as an operand is called an operand word In some instructions the word address designated in an instruction indicates the first of multiple words containing the desired data Each instruc
118. age 110 e Data Carrier Memory Page 75 e ID Communications Instructions DC READ AUTOREAD Page 79 DC WRITE AUTOWRITE Page 80 DC CLEAR Page 82 DC MANAGE DATA Page 83 All the Above Instructions Page 134 e Advanced I O Instructions Page 86 e Interrupts Page 94 e Programming Console Operations Page 37 ID Controller Features Section 1 1 1 1 2 ID Controller Features e The ID Controller is equipped with an interface for electromagnetic coupling ID Sensors and one Read Write Head can be connected Communications con tent read write with Data Carriers featuring this interface is performed by se quential programming commands e Interrupt functions are provided and specific subroutines can be executed in response to ID communications e The ID Controller can be used for various types of communications such as host links NT links to PT 1 1 links and RS 232C e The controller is equipped with 32 I O points 16 input points and 16 output points e The details of up to 30 errors generated during communications with the Data Carrier can be logged in response to errors in ID communication commands Other functions such as online communications test are available to test com munications with Data Carriers 1 1 3 ID Controller Functions ID Communications Instructions ID Interrupts Communication Functions The following instructions are provided specifically for ID communications to control data reception between
119. age media RAM will not retain data when power is disconnected An acronym for reliability assurance safety A memory area from which the user can read status but to which data cannot be written The process of updating output status sent to external devices so that it agrees with the status of output bits held in memory and of updating input bits in memory so that they agree with the status of inputs from external devices The forerunner of ID Controllers In relay based control groups of relays are in terconnected to form control circuits In a ID Controller these are replaced by programmable circuits A bit that is not available for user application A word in memory that is reserved for a special purpose and cannot be accessed by the user The process of turning a bit or signal OFF or of changing the present value of a timer or counter to its set value or to zero A code sent with the response to a data transmission that specifies how the transmitted data was processed A format specifying the data required in a response to a data transmission The time a device will wait for a response to a data transmission before assum ing that an error has occurred A bit used to restart part of a device or process The processes of copying data either from an external device or from a storage area to an active portion of the system such as a display buffer Also an output device connected to the ID Controller is called a load
120. agram programming the premises are usually the ON OFF states of bits or the logical combination of such states called execution conditions A logic operation whereby the result is true if one and only one of the premises is true In ladder diagram programming the premises are usually the ON OFF states of bits or the logical combination of such states called execution condi tions The ON or OFF status under which an instruction is executed The execution condition is determined by the logical combination of conditions on the same in struction line and up to the instruction currently being executed The cycle used to execute all processes required by the CPU including program execution I O refreshing peripheral servicing etc The time required for the CPU to execute either an individual instruction or an entire program A counter created in a program by using two or more count instructions in suc cession Such a counter is capable of counting higher than any of the standard counters provided by the individual instructions ISS extended timer FAL error FALS error fatal error FCS flag force reset force set forced status frame checksum function code hardware error header code hexadecimal host computer host interface host link HR area 1 O bit I O capacity A timer created in a program by using two or more timers in succession Such a timer is c
121. al 0000 to FFFF Can be used as work bits when input interrupt 2 is not used in counter mode 01 to 15 Input Interrupt 3 Counter Mode SV SV when input interrupt 3 is used in counter mode 4 digits hexadecimal 0000 to FFFF Can be used as work bits when input interrupt 3 is not used in counter mode 01 to 15 Input Interrupt 0 Counter Mode PV Minus One Counter PV 1 when input interrupt O is used in counter mode 4 digits hexadecimal 01 to 15 Input Interrupt 1 Counter Mode PV Minus One Counter PV 1 when input interrupt 1 is used in counter mode 4 digits hexadecimal 01 to 15 Input Interrupt 2 Counter Mode PV Minus One Counter PV 1 when input interrupt 2 is used in counter mode 4 digits hexadecimal 01 to 15 Input Interrupt 3 Counter Mode PV Minus One Counter PV 1 when input interrupt 3 is used in counter mode 4 digits hexadecimal 00 High speed Counter Reset Bit 01 to 07 Not used 08 Peripheral Port Reset Bit Turn ON to reset peripheral port Not valid when peripheral device is connected Auto matically turns OFF when reset is complete RS 232C Port Reset Bit Turn ON to reset RS 232C port Automatically turns OFF when reset is complete ID Controller Setup Reset Bit Turn ON to initialize ID Controller Setup DM 6600 through DM 6655 Automatically turns OFF again when reset is complete Only effective if the ID Controller is in PROGRAM mode Forced Status Ho
122. alization Transfer contents of Memory Cassette to ID Controller Clear IR SR AR areas and preset system tim a Check hardware and Program Memory No Overseeing Check OK processes l Yes Set error flags Preset cycle time and activate monitoring time ID data indicators refreshing ALARM ERROR or ALARM fashino Execute user s program No Program ERROR End of program execution lit Yes Check cycle time set ting Cycle time Minimum No cycle time Cycle time Yes processing Y Wait until minimum cycle time expires y Compute cycle time Y Refresh input bits and output terminals VOTefreshing id Service RS 232C port hate interface y Service Service peripheral port peripheral port T 162 Computing the Cycle Time Section 8 2 One cycle of ID Controller operation is called a cycle The time required for one cycle is called the cycle time The cycle time is also called the scan time l O Refresh Methods ID Controller I O refresh operations are broadly divided into two categories The first of these input refresh involves reading the ON OFF status of input points to the input bits The second output refresh involves writing the ON OFF status after program execution to the output points The ID
123. ammable for Most Instructions 25313 across sucio Operas 00000 25313 Diagram B Correct Version 00001 Instruction There are a few exceptions to this rule including the INTERLOCK CLEAR JUMP END and step instructions Each of these instructions is used as the second of a pair of instructions and is controlled by the execution condition of the first of the pair Conditions should not be placed on the instruction lines leading to these instructions When drawing ladder diagrams it is important to keep in mind the number of instructions that will be required to input it In diagram A below an OR LOAD instruction will be required to combine the top and bottom instruction lines 129 Basic Programming Concepts Section6 2 This can be avoided by redrawing as shown in diagram B so that no AND LOAD or OR LOAD instructions are required Refer to 6 4 2 AND LOAD and OR LOAD for more details 00000 00000 00001 00001 00001 10007 H 00002 10007 00003 ono 00004 10007 Diagram A Hi 00000 00001 00001 10007 0000 OR 00000 00003 10007 Diagram B Other Precautions 1 2 3 1 There is no limit to the number of input conditions that can be used in series or in parallel 2 Instructions can be used not only to control output bit status directly but also to control the status of other bits in memory called work bits that are used to control program execution e g to trigger execution of other i
124. and generates a direct table or starts operation DIGITAL SWITCH INPUT Inputs 4 or 8 digit BCD data from a digital switch FCS CALCULATE Computes the FCS to check for errors in data trans mitted by a Host Link command HEXADECIMAL KEY IN PUT Inputs up to 8 digits of hexadecimal data from a 16 key keypad SECONDS TO HOURS Converts second data to hour and minute data MODE CONTROL Starts and stops counter operation compares and changes counter PVs and stops pulse output LINE Copies a bit column from 16 consecutive words to the specified word 125 Basic Programming Concepts Section6 2 Mnemonic Function FIND MAXIMUM Finds the maximum value in specified data area and outputs that value to another word FIND MINIMUM Finds the minimum value in specified data area and outputs that value to another word HIGH SPEED COUNTER Reads counter PVs and status data for the high speed PV READ counter SET PULSES Sets the number of pulses to output SCALE Performs a scaling conversion on the calculated value HOURS TO SECONDS Converts hour and minute data to second data SPEED OUTPUT Outputs pulses at the specified frequency 20 Hz to 1 KHz in 10 Hz units The output frequency can be changed while pulses are being output SUM CALCULATE Computes the sum of the contents of the words in the specified range of memory TEN KEY INPUT Inputs 8 digits of BCD data from a 10 key keyp
125. apable of timing longer than any of the standard timers provided by the individual instructions An error generated from the user program by execution of an FAL 06 instruc tion An error generated from the user program by execution of an FALS 07 instruc tion or an error generated by the system An error that stops ID Controller operation and requires correction before opera tion can continue See frame checksum A dedicated bit in memory that is set by the system to indicate some type of oper ating status Some flags such as the carry flag can also be set by the operator or via the program The process of forcibly turning OFF a bit via a programming device Bits are usu ally turned OFF as a result of program execution The process of forcibly turning ON a bit via a programming device Bits are usu ally turned ON as a result of program execution The status of bits that have been force reset or force set The results of exclusive ORing all data within a specified calculation range The frame checksum can be calculated on both the sending and receiving end of a data transfer to confirm that data was transmitted correctly A two digit number used to input an instruction into the ID Controller An error originating in the hardware structure electronic components of the ID Controller as opposed to a software error which originates in software i e pro grams A code in an instruction that specifies what the instructi
126. area exceeds 100 000 the ID Check Warning Flag SR 23307 will turn ON In decremental write count management the write management count is written in the write count management area ahead of time with the write instruction The number designated by the incremental decremental count is subtracted each time IDMD 66 is executed The ID Check Warning Flag SR 23307 will turn ON when the write count management area reaches 0 83 ID Communications Section 5 3 Code Checks Example Write Count Management 84 DMO0010 Note IDMD 66 can also be executed to add a check code to data in the Data Carrier to detect data errors caused by battery service life SRAM Data Carriers and overwrite service life EEPROM Data Carriers After writing data IDMD 66 is used to calculate and write check codes after the data The check code is written in the last two bytes of the specified check code cal culation area Do not write data to this area from the user program CRC X18 X12 X5 1 is used for error detection Check codes can be verified before reading previously written data in order to make sure that the data has not been damaged by reaching the service life or other problems If the check code does not match the one that was written earli er the ID Check Warning Flag SR 23307 will turn ON Data is written to DC address 0040 in the Data Carrier When IDMD 66 is executed the count in the address used for write count man
127. ase each BCD digit i e each group of four BCD bits is numerically equivalent to the corresponding decimal digit The BCD bits 0101 0111 0101 0111 are con verted to decimal by considering each four bits from the right Binary 0101 is decimal 5 binary 0111 is decimal 7 The decimal equivalent would thus be 5 757 Note that this is not the same numeric value as the hexadecimal equivalent of 0101 0111 0101 0111 which would be 5 757 hexadecimal or 22 359 in decimal 163 x 5 162 x 7 16 x 5 7 Because each four BCD binary bits must be numerically equivalent to a deci mal value any four bit combination numerically greater than 9 cannot be used e g 1011 is not allowed because it is numerically equivalent to 11 which cannot be expressed as a single digit in decimal notation The binary bits 1011 are allowed in hexadecimal and are equivalent to the hexadecimal digit B There are instructions provided to convert data between BCD and hexadeci mal Decimal points are used in timers although they are assumed and not actu ally input into memory The least significant digit represents tenths of a sec ond All arithmetic instructions operate on integers only When inputting data for use in special applications be sure to check on the type of data required for the application 6 2 3 Programming Precautions 128 The number of conditions that can be used in series or parallel is unlimited as long as the memory capacity of the ID Contro
128. aster and the slave are made correctly then the one to one link will be automatically started up simply by turning on the power supply to both the ID Controllers and operation will be independent of the ID Controller operating modes This example shows a program for verifying the conditions for executing a one to one link using the RS 232C ports Before executing the program set the fol lowing ID Controller Setup parameters Master DM 6645 3200 one to one link master Area used LR 00 to LR 15 Slave DM 6645 2000 one to one link slave The defaults are assumed for all other ID Controller Setup parameters The words used for the one to one link are as shown below Master Slave LROO LROO Area for writing Lo Area for reading EROZ zm IRA rt eR e LRO7 LROS Area for reading Area for writing KROG LR15 LR15 When the program is executed at both the master and the slave the status of IR 001 of each ID Controller will be reflected in IR 100 of the other ID Controller Likewise the status of the other ID Controller s IR 001 will be reflected in IR 100 of each ID Controller IR 001 is an input word and IR 100 is an output word In the Master 25313 Always ON MOV 21 LROO MOV 1 LRO8 In the Slave 25313 Always ON MOV 21 119 Communications Section 5 6 5 6 6 NT Link Communications Note ID Controller Setup Communications Procedure 120 The s
129. ations error log any time during ID Controller operation The ID Controller may be in any op erating mode SHIFT IMONTR The Programming Console can be used to test ID communications The ID Con troller must be in PROGRAM mode for this set to be carried out 1 Turn bits SR 23208 and SR 23209 ON and then OFF from the Programming Console to execute the test Data will be written and read from specific addresses in the Data Carrier at 1 second intervals and any errors occurring during the test will be recorded in word SR 234 2 Read the contents of SR 234 to check the results of the test Refer to the next section for other operations or to the CQM1 Programmable Controller Operation Manual 35 Programming Console Preparations Section 3 2 Preparatory Operations Changing Displays 36 1 2 3 The basic operations required to prepare for programming are listed below 1 2 Set the Programming Console s mode selector to PROGRAM mode Enter the password by pressing the CLR and then the MONTR Key At this point the SHIFT and then the 1 key can be pressed to turn on and off the Programming Console s buzzer Refer to page 41 If you are going to input a new program clear the ID Controller s memory by pressing the CLR SET NOT RESET and then the MONTR Key Refer to page 39 Display and clear any error messages by pressing the CLR FUN and then the MONTR Key Continue pressing the MONTR
130. ations response interrupt 3 High speed counter interrupt 4 Interval timer interrupt O Interval timer interrupt 1 Interval timer interrupt 2 Interval timer interrupt 2 high speed counter interrupt When an interrupt with a higher priority is received during interrupt processing the current processes will be stopped and the newly received interrupt will be processed instead After that routine has been completely executed then pro cessing of the previous interrupt will be resumed When an interrupt with a lower or equal priority is received during interrupt pro cessing then the newly received interrupt will be processed as soon as the rou tine currently being processed has been completely executed Just as with ordinary subroutines interrupt processing routines are defined us ing SBN 92 and RET 93 at the end of the main program When interrupt processing routines are executed a specified range of input bits can be refreshed When an interrupt processing routine is defined a no SBS error will be gener ated during the program check but execution will proceed normally If this error occurs check all normal subroutines to be sure that SBS 91 has been pro grammed before proceeding The following instructions will not be executed in an interrupt subroutine when an instruction that controls pulse I O or high speed counters is being executed in the main program SR 25508 will turn ON INI PRV CTBL
131. be used as the operand it may specify the destination for a data transfer instructions it may specify the size of a data table used in an instruction etc A signal sent from the ID Controller to effect the operation of the controlled sys tem All of the hardware and software components used to control other devices A Control System includes the ID Controller System the ID Controller programs and all I O devices that are used to control or obtain feedback from the controlled system The devices that are being controlled by a ID Controller System The signal counted by a counter A dedicated group of digits or words in memory used to count the number of times a specific process has occurred or a location in memory accessed SS CPU CTS CY cycle cycle time cyclic interrupt data area data area boundary data length data link area data sharing data trace data transfer debug decimal decrement default destination differentiated instruction differentiation instruction through a TIM CNT bit and used to count the number of times the status of a bit or an execution condition has changed from OFF to ON See central processing unit An acronym for clear to send a signal used in communications between elec tronic devices to indicate that the receiver is ready to accept incoming data See Carry Flag One unit of processing performed by the CPU including ladder pr
132. bit unsigned binary A definer used to identify the subroutine that a subroutine call or interrupt acti vates See set value The maximum voltage current that a relay can safely switch on and off The form of a program statement as opposed to its meaning An error in the way in which a program is written Syntax errors can include spelling mistakes i e a function code that does not exist mistakes in specify ing operands within acceptable parameters e g specifying read only bits as a destination and mistakes in actual application of instructions e g a call to a subroutine that does not exist A software package installed on a IBM PC AT or compatible computer to func tion as a Programming Device The arrangement in which devices in a System are connected This term refers to the conceptual arrangement and wiring together of all the devices needed to comprise the System An error generated by the system as opposed to one resulting from execution of an instruction designed to generate an error An error message generated by the system as opposed to one resulting from execution of an instruction designed to generate a message Operating environment settings for a Programming Device e g the LSS A location in memory accessed through a TIM CNT bit and used to time down from the timer s set value Timers are turned ON and reset according to their ex ecution conditions A data area used to store execution conditi
133. bits 08 to 15 Default 120 ms The cycle monitor time is used for checking for extremely long cycle times as can happen when the program goes into an infinite loop If the cycle time ex ceeds the cycle monitor setting a fatal error FALS 9F will be generated Note 1 The unit used for the maximum and current cycle times recorded in AR 26 and AR 27 will change according to the unit set for the cycle monitor time as shown below Bits 08 to 15 set to 00 or 01 0 1 ms Bits 08 to 15 set to 02 1 ms Bits 08 to 15 set to 03 10 ms 2 When bits 08 to 15 are set to 02 or 03 the cycle time read from Programming Devices will not exceed 999 9 ms even if the cycle time is 1 s or longer The correct maximum and current cycle times will be recorded in AR 26 and AR 27 Example If 0230 is set in DM 6618 an FALS 9F error will not occur until the cycle time exceeds 3 s If the actual cycle time is 2 59 s AR 27 will contain 2590 ms but the cycle time read from a Programming Device will be 999 9 ms 71 Basic Operations and I O Processes Section 5 2 A cycle time over error non fatal will be generated when the cycle time ex ceeds 100 ms unless detection of long cycle times is disable using the setting in DM 6655 Error Detection and Error Log Operation DM 6655 Make the settings shown below to determine whether or not a non fatal error is to be generated when the cycle time exceeds 100 ms or when the voltage of the built in battery d
134. can be monitored ID Controller Features Section 1 1 32 I O Points e Outputs 16 contact outputs or 16 transistor outputs e Inputs 16 24 VDC inputs ID Error Log The log of errors generated during ID communication is stored in the DM area in the order generated serial error log or as statistical data by error type error statistics log The time that an error was generated can also be stored in memory if a Memory Cassette equipped with clock functions is provided Serial and error statistics logs can be checked from a Programming Console connected to the ID Controller ID Communication Errors Programming Meaning Console message Data Carrier communications error Data mismatch Data Carrier missing Data Carrier address error Read Write Head not connected Protection error PC Functions I O and communication functions can be controlled with the ladder diagram pro gram in the PC Advanced I O instructions that input and output data with a single instructions macro instructions to call up subroutines and differential monitoring to monitor changes via LSS SSS in signals are also provided to help simplify programming and operation Note Refer to the CQM1 Programming and Operation Manuals for details on PC func tions 1 1 4 ID Controller Applications The ID Controller facilitates the construction of non contact ID systems that rec ognize data using and electromagnetic induction and
135. can process the data us ing Programmable Controller PC functions The contents of Data Carrier memory can be read without direct connections or contact with Data Carriers mounted on moving objects simply by connecting a Read Write R W Head to the ID Controller as shown in the following illustration ID Controller Data Carrier Moving object Moving object ID Controller Features Section 1 1 As a result products or other articles can be distributed and specific products can be extracted automatically Refer to 7 4 Controlling Workpiece Flow And since the ID Controller can write to Data Carriers information such as whether work was completed or work results can be recorded at any stage to the Data Carrier of moving objects Refer to 7 1 Recording Data and 7 3 Managing Production Histories Connecting Programmable Terminals PTs shown in the following illustration to a ID Controller enables data confirmation displays for work details applicable in the ID system and other capabilities Refer to 7 2 Displaying Worker Instruc tions ID Controller Data Carrier Moving object Moving object Data Recording The ID Controller and Programmable Terminal can also be used to record data in the Data Carrier Workers can record data in the Data Carrier with a few simple operations while confirming data details on a Programmable Terminal PT fnscreen ID Controller NT link to RS 232C port Data input
136. cations 0 0 nee 114 5 6 5 One to one Link Communications 0 0 0 0 c cece ee eee 118 5 6 6 NT Link Communications 0 0000 cece eens 120 63 ID Controller Setup Section 5 1 5 1 1D Controller Setup The ID Controller Setup comprises various operating parameters that control ID Controller operation In order to make the maximum use of ID Controller func tionality when using interrupt processing and communications functions the ID Controller Setup may be customized according to operating conditions At the time of shipping the defaults are set for general operating conditions so that the ID Controller can be used without having to change the settings You are however advised to check the default values before operation The ID Controller Setup is broadly divided into three categories 1 Settings re lated to basic ID Controller operation and l O processes 2 Settings related to interrupts and 3 Settings related to communications This section will explain the settings according to these classifications The following table shows the setting in order in the DM area For details refer to the page numbers shown Word s Function Startup Processing DM 6600 to DM 6614 The following settings are effective after transfer to the ID Controller only after the ID Controller is restarted DM 6600 00 to 07 Startup mode effective when bits 08 to 15 are set to 02 00 PROGRAM 01 MONITOR 02 RUN 08 to
137. coder to the ID Controller s input terminal are as shown below Terminal no Up Down Mode Incrementing Mode Encoder A phase Pulse count input Encoder B phase Encoder Z phase Reset input If only the software reset is to be used terminal 6 can be used as an ordinary input When in Incrementing Mode terminal 5 can be used as an ordinary input When using high speed counter interrupts make the settings in PROGRAM mode shown below before executing the program Input Refresh Word Settings DM 6638 Make these settings when it is necessary to refresh inputs The setting is the same as that for interval timer 2 Bit 15 0 DM6638 Input refresh setting 00 or 01 Pe Set to 00 Default No input refresh Using Interrupts Section 5 5 High speed Counter Settings DM 6642 If these settings are not made the high speed counter cannot be used in the pro gram Bit 15 0 DM6642 0 1 eel 4 High speed counter used Reset method 0 Z phase and software reset 1 Software reset Count mode 0 Up Down Mode 4 Incrementing Mode Default High speed counter not used Changes in the setting in DM 6642 are effective only when power is turned on or ID Controller program execution is started Programming Use the following steps to program the high speed counter The high speed counter begins the counting operation when the proper ID Con troller Setup settings
138. con dition ORLD OR LOAD Logically ORs results of preceding blocks OR NOT OR NOT Logically ORs inverse of designated bit with execution con dition OUT OUTPUT Turns ON operand bit for ON execution condition turns OFF operand bit for OFF execution condition OUT NOT OUTPUT NOT Turns operand bit OFF for ON execution condition turns operand bit ON for OFF execution condition i e inverts operation RSET RESET Turns the operand bit OFF when the execution condition is ON and does not affect the status of the operand bit when the execution condition is OFF SET SET Turns the operand bit ON when the execution condition is ON and does not affect the status of the operand bit when the execution condition is OFF TIM TIMER ON delay decrementing timer operation NOP NO OPERATION Nothing is executed and program moves to next instruc tion END Required at the end of the program INTERLOCK INTERLOCK CLEAR If interlock condition is OFF all outputs are turned OFF and all timer PVs reset between this IL 02 and the next IL C 03 Other instructions are treated as NOP counter PVs are maintained JUMP JUMP END If jump condition is OFF all instructions between JMP 04 and the corresponding JME 05 are ignored FAILURE ALARM AND RESET Generates a non fatal error and outputs the designated FAL number to the Programming Conso
139. cution Advanced I O Instructions Section 5 4 Application Example This example shows a program for displaying the ID Controller s 8 digit BCD numbers at the 7 segment LED display Assume that the 7 segment display is connected to output word IR 100 Also assume that the output is using negative logic and that the 7 segment display logic is also negative for data signals and latch signals 25313 Always ON DM0120 The 8 digit data in DM 0120 rightmost 4 digits and DM 0121 leftmost 4 digits are always displayed by means of 7SEG When the contents of DM 0120 and DM 0121 change the display will also change 5 4 5 Alternate I O Bits Although the advanced I O instructions generally using I O bits starting from bit 00 of the specified words they can be programmed through intermediate words to use other I O bits The following example shows how this can be achieved for HKY Refer to the CQM1 Programming Manual for further details Example The following wiring and program examples show how to use input bits IR 00004 through IR 00007 and output bits IR 10004 through IR 10007 to input values from a hexadecimal keypad Program 25313 Always ON MOVD 83 Bits 04 through 07 of IR 000 are transferred to bits 00 through 03 of DM 0000 0001 DMO0000 HKY is coded using DM 0000 as the input word and DM 0100 as the output word Execution results are placed in DM 1000 to DM 1002 Bits 00 through 03
140. cution condition is OFF Likewise RSET differs from OUT NOT because OUT NOT turns the operand bit ON when its execution condition is OFF The status of operand bits for SET and RSET programmed between IL 002 and ILC 003 or JMP 004 and JME 005 will not change when the interlock or jump condition is met i e when IL 002 or JMP 004 is executed with an OFF execu tion condition There are no flags affected by these instructions Definer Values Ladder Symbol CE e 000 through 511 TIM N Operand Data Areas SV Set value word BCD IR SR AR DM HR LR Key Sequence TIM Timer number WRITE Set value WRITE Basic Instructions Section 6 4 Description A timer is activated when its execution condition goes ON and is reset to SV when the execution condition goes OFF Once activated TIM measures in units of 0 1 second from the SV If the execution condition remains ON long enough for TIM to time down to zero the Completion Flag for the TC number used will turn ON and will remain ON until TIM is reset i e until its execution condition is goes OFF The following figure illustrates the relationship between the execution condition for TIM and the Completion Flag assigned to it ON Execution condition OFF ON 1 1 Completion Flag OFF SV s Precautions SV is between 000 0 and 999 9 The decimal point is not entered Each TC number can be used as the definer in only one TIMER or COUNTER
141. d a check code to data in the Data Carrier and then again to detect data errors in reading previously written check codes It can also be used to count the number of times data is written to the Data Carrier in order to manage the writing service life Using the Instruction 0 IDMD 66 S First address of DC management area 4 digit HEX C4 Control data 1 Co Control data 2 Refer to page 138 for further details on control data Write Count Control The number of times that data is written to a Data Carrier can be counted in order to manage the writing service life of EEPROM Data Carriers IDMD 66 is used to create write count management areas to count the number of times data is written to the most frequently overwritten address in the Data Carrier and is placed immediately after a write instruction for that address When the instruction is used after writing data several times the number of times that writing took place can be specified in the control data as an increment to add to the count Note With IDMD 66 any overwrite count service life can be managed by setting sep arate 3 byte write count management areas separate from the area used for the 100 000 cycle overwrite service life Counting Modes The write count mode can be set in the control data In incremental write count management the number designated for the incremental decremental count is added each time IDMD 66 is executed When the write count management
142. d to generate the alarm in the program as opposed to one generated by the system An error arising as a result of the execution of an instruction designed to gener ate the error in the program as opposed to one generated by the system A message generated as a result of execution of an instruction designed to gen erate the message in the program as opposed to one generated by the system The portable form of Programming Device for a ID Controller A Peripheral Device used to input a program into a ID Controller or to alter or monitor a program already held in the ID Controller There are dedicated pro gramming devices such as Programming Consoles and there are non dedi cated devices such as a host computer Programmable read only memory a type of ROM into which the program or data may be written after manufacture by a customer but which is fixed from that time on The parameters and procedures that are standardized to enable two devices to communicate or to enable a programmer or operator to communicate with a de vice C SS A PV RAM RAS read only area refresh relay based control reserved bit reserved word reset response code response format response monitoring time Restart Bit retrieve retry return reversible counter reversible shift register right hand instruction rightmost bit word rising edge ROM See present value Random access memory a data stor
143. data 51 219 Index MONITOR mode description 12 monitoring binary monitor 50 51 status 47 mounting preventing noise 17 moving data 146 blocks 149 digits 147 MSG 46 174 N O noise prevention 17 19 one to one link wiring 27 operands 126 operating modes 12 operation See Programming Console operations affects of scan time 164 internal processing 162 output 7 segment displays 91 output terminals 10 outputs controlling 141 142 indicators 11 inhibiting indicator 11 turning OFF 176 P peripheral devices list 25 models 189 peripheral port 10 indicator 11 settings 64 67 ports settings 64 66 67 power supply 10 specifications 15 wiring 30 precautions 30 precautions ground 30 installation 16 programming 128 wiring 18 procedures See also Programming Console overall 7 program automatic transfer 13 Program Memory setting address and reading content 43 220 PROGRAM mode description 12 Programmable Terminals 3 application example 5 156 programming checks for syntax 47 errors 173 examples 156 high speed counter 107 inserting and deleting instructions 44 45 interrupts 107 precautions 128 setting and reading a memory address 43 Programming Console 34 connecting 35 connection 25 displayed language 10 displays 36 error displays 4 keys 34 mode selector 12 models 25 34 monitoring errors 35 operations
144. data when a Memory Cassette equipped with a clock is used ID Controller o LEE Inspection results input panel Worker Inspection Once an inspection is completed data results together with time data are written to the Data Carriers The following data is written to the Data Carriers 0020 and 0021 0022 and 0023 0024 and 0025 0026 and 0027 inspection data 12 34 time data min s time data date hr time data yr mo The following program achieves the desired process pem mre umm pedem spa Set 4 digits of data input from panel into DM Read key inputs 0020 and turn on the input completed bit 4 digits to DM 0020 XFER 70 Transfer the time data to the DM area just after the words holding the above input data IDWT activation IDWT 62 0020 0008 DM 0020 Write 8 bytes of data starting at DM 0020 to Data Carrier addresses starting at 0020 Controlling Workpiece Flow Section 7 4 7 4 Controlling Workpiece Flow Process Data Carrier Data Program In this example the ID Controller is used to control flow of products on a convey or line e g to route products to another line by destination In addition to flow control with a simple mechanism like a pusher the ID Control ler is also ideally suited to advanced distribution control using devices that demand complex processing by servo motors and other equipment Product ID Controll
145. decimal digits in source word into decimal values from O to 15 and turns ON in result word s bit s whose position corresponds to converted value DMPX 124 16 TO 4 ENCODER Determines position of highest ON bit in source word s and turns ON corresponding bit s in result word Instruction Set Mnemonic SDEC 7 SEGMENT DECODER Section 6 1 Function Converts hexadecimal values from source word to data for seven segment display DIST SINGLE WORD DISTRIBUTE Moves one word of source data to destination word whose address is given by destination base word plus offset Per forms stack push operation COLL DATA COLLECT Extracts data from source word and writes it to destination word Performs stack pull operation MOVB MOVE BIT Transfers designated bit of source word or constant to des ignated bit of destination word MOVD MOVE DIGIT Moves hexadecimal content of specified four bit source digit s to specified destination digit s for up to four digits SFTR REVERSIBLE SHIFT REGISTER Shifts data in specified word or series of words to either left or right TCMP TABLE COMPARE Compares four digit hexadecimal value with values in table consisting of 16 words ASC ASCII CONVERT Converts hexadecimal values from the source word to eight bit ASCII code starting at leftmost or rightmost half of starting destination w
146. e vice An external device that receives signals from the ID Controller System The point at which an output leaves the ID Controller System Output points cor respond physically to terminals or connector pins A signal being sent to an external device Generally an output signal is said to exist when for example a connection point goes from low to high voltage or from a nonconductive to a conductive state The state where the capacity of a data storage location has been exceeded Part of the processing performed by the CPU that includes general tasks re quired to operate the ID Controller 211 OS SI HM overwrite parity parity check PC Peripheral Device peripheral servicing port positive delay present value printed circuit board PROGRAM mode Programmable Controller programmed alarm programmed error programmed message Programming Console Programming Device PROM protocol 212 Changing the content of a memory location so that the previous content is lost Adjustment of the number of ON bits in a word or other unit of data so that the total is always an even number or always an odd number Parity is generally used to check the accuracy of data after being transmitted by confirming that the number of ON bits is still even or still odd Checking parity to ensure that transmitted data has not been corrupted See Programmable Controller Devices connected to a ID Con
147. e the destina tion data is displayed on the PT and the ID number is written to the Data Carrier Data Carrier Data The following data is written to the Data Carrier 0020 12 0021 34 PT Settings Use a ten key input and set the PT so that the character string stored in DM 0050 is displayed after input Program When the ID number is input a search is made for messages displayed for the number The character string is written into DMOO5O and written as the ID num ber to the Data Carrier p 24 ID code check Check validity of 4 digit data input from PT input complete signal 4 digits to DM 0020 PT Input OK bit O EE e Set destination data Set display data in DM 0050 is input is display data to DM 0050 valid Destination display IDWT activation IDWT activation ID Ready Flag Write 2 bytes of data set in DM 0020 to Data Carrier address 0020 ID Completed Flag ID Communications Error Flag Normal end d Check ID Communications Error Flag and Set bit to show either normal or error end ID Communications Error Flag Error end 156 Displaying Worker Instructions 7 2 Displaying Worker Instructions In this example the ID Controller reads work data from the Data Carrier for lamp Process Data Carrier Data Program IDRD activation ID Completed Flag 15000 Work completed signal Work start signal ID Ready Flag ID Communications Error Flag
148. e 182 Normal Is O sequence Not normal normal Check I O See page 186 Normal Operating environment nor mal Not normal Check operating environment See page 188 Normal Replace the ID Controller Note Always turn off the power to the ID Controller before replacing batteries wiring or cables 181 Troubleshooting Flowcharts Section9 9 l O Communications Check Before starting the following flowchart connect a Programming Console and read the ID error history Installation DC speed OK directions OK paa 1s No Reduce the speed of Correct installation dis Replace Data Carrier the Data Carrier tances direction etc Data Carrier 2 No Replace Data Carrier Page and ad dresses OK No Reset the page and addresses Read Write Head OK No Replace Read Write Head Write protect Data Carrier setting OK OK No No Correct release write Replace Data Carrier protect setting Distance between R W Data Carrier Head and DC OK OK2 No No Correct distance Replace Data Carrier Replace ID Controller 182 Troubleshooting Flowcharts Section9 9 Power Supply Check Is power being supplied Connect power supply Is Power indicator lit Lit Is voltage adequate See note Set supply voltage with in acceptable limits Is Power indicator lit Yes Are there any loose terminal screws or bro ke
149. e AC power supply voltage remains within the allowed fluctuation range of 85 to 264 VAC Exceeding this range may destroy the ID Controller Wiring Precautions for Wire the grounding wires according to the diagram shown below The ID Con Ground Wires troller with the lot number OOZ5 manufactured in December 1995 and later is provided with the LG GR short circuit bar and the DIN track cable Terminal Block for External Connections The following diagram shows the terminal blocks for the external power supply C9 AC Use an AC power supply C3 input between 100 and 240 VAC e C9 GR Protective earth terminal 77 LG Noise filter neutral terminal The wire used should be at least 2 mm Provide the grounding point as close to the ID Controller as possible NWARNING LG Noise filter neutral terminal Short circuit the LG terminal and GR terminals using the attached short circuit bar and ground them at a resistance of less than 100 Q to reduce noise and prevent electric shock NWARNING GR Protective earth terminal Connect to a separate ground wire of at least 2 mm to ground the terminal at a resistance of less than 100 2 to prevent electric shock N Caution Avoid sharing the grounding wire with other equipment or attaching to the beam of a building otherwise it may cause an adverse effect Correct Incorrect Other equipment L i ID Controller ID Controller
150. e current average cycle time scan time It is possible only in RUN or MONITOR mode while the program is being exe cuted RUN MONITOR PROGRAM 1 2 3 1 Bring up the initial display 2 Press the MONTR Key to display the cycle time 3 3 15 Force Set Reset MONTR There might be differences in displayed values when the MONTR Key is pressed repeatedly These differences are caused by changing execution conditions This operation is used to force bits ON force set or OFF force reset and is useful when debugging the program or checking output wiring It is possible in MONITOR or PROGRAM mode only RUN MONITOR PROGRAM Ne E AE O A 1 2 3 1 Monitor the status of the desired bit according to the procedure described in 3 3 12 Bit Digit Word Monitor lf two or more words are being monitored the desired bit should be leftmost on the display Press the SET Key to force the bit ON or press the RESET Key to turn the bit OFF The cursor in the lower left corner of the display indicates that the force set reset is in progress Bit status will remain ON or OFF only as long as the key is held down the original status will return one cycle after the key is re leased If a timer or counter is force reset in MONITOR mode it will begin operation again after completion if its input is on and will stop when the time is up 49 Programming Console Operations Section 3 3 3 Pr
151. e data and step trace data are deleted Set the PC model to the CQM1 when using the LSS for the ID Controller Press the K Key on the System Setup Menu to specify the PC model setting and then press the E Key to specify the CQM1 The LSS treats the ID Controller as a CQM1 PC Go to online LSS operations and transfer the expansion instructions from the ID Controller to the LSS Press the A Key from the online Utility Menu and then con firm the operation on the prompt that appears next When transferring the program from the ID Controller to the computer running the LSS specify E SEND TO END This will ensure that the expansion instruc tions table will transferred to the computer after transfer of the program has been completed To avoid having to go online with the ID Controller to transfer the expansion instructions each time you use the LSS for the ID Controller you can transfer them to the LSS once and then save them to disk using the A RETRIEVE SAVE INSTRUCTIONS operation on the offline Utility Menu Once the expansion instructions have been saved to disk the AIRETRIEVE SAVE INSTRUCTIONS operation can be used to retrieve them to use the LSS offline for the ID Control ler SSS Operations Section 3 5 3 5 SSS Operations N Caution PC Model for ID Controller Expansion Instructions Program Transfer This section describes SSS operations required for communications with the ID Controller and settings in the SSS
152. e display are given in the following table using the data in the above example display Displayeddatay Meaming O The number of times the specified type of error has occurred The error message Refer to 1 1 3 ID Controller Functions for the meaning of error messages 3 Press the Down Cursor Key to display the number of times an error was gen erated for the next error code number Pressing the Up Cursor Key displays the number of times an error was gen erated for the previous error code number 4 Press the Clear Key to quit the ID Error Statistics Log display and return to the initial screen 3 3 3 Clearing Memory This operation is used to clear all or part of the Program Memory and any data areas that are not read only This operation is possible in PROGRAM mode only RUN MONITOR PROGRAM NB INL IE Oe e d N Caution The ID Controller Setup DM 6600 through DM 6655 will be cleared along with the rest of the DM area if the DM area is specified for clearing The error log however will not be cleared All Clear The following procedure is used to clear memory completely 112 3 1 Bring up the initial display by pressing the CLR key repeatedly 2 Press the SET NOT and then the RESET Key to begin the operation 3 Press the MONTR Key to clear memory completely IMONTR 39 Programming Console Operations Section 3
153. e following flowchart illustrates the overall flow of using an ID Controller START 2 3 Installing the ID Controller Y Design system Y Draw sequence diagrams Y Allocate Data Carrier memory Y Allocate l O bits Y Connect and wire system Y Apply power to ID Controller Y Draw ladder diagram program Section 4 Data Areas gt Section 5 Using ID Control Features 3 4 LSS Operations 3 5 SSS Operations Y Code program Y Input program Section 6 Programming Instructions 3 3 Programming Console Operations Y Debug program Correct program Y Test system under trial operation Y Save program Y Operate system SECTION 2 Hardware Components and Installation This section describes the components that make up an ID Controller and the procedures necessary to install and mount an ID Controller 2 1 Component Names and Functions 0 00 cee es 10 2131 DIA Switch ia pee pedo 10 2 1 2 Indicators ue a REEIRSREDEUT RES e bei PRAE 11 2 1 3 ID Controller Operating Modes 0 0 00 cece eee 12 2 1 4 Memory Cassettes 0 ec eee eee eee 13 2 2 System Configuration and Installation 2 0 0 00 eee eee eee 15 2 2 1 Basic Configuration o oooooooooroor eee eee 15 2 2 2 Installation Precautions 0 eee eee 16 2 2 3 Termina
154. e left column of the manual to help you locate different types of information Note Indicates information of particular interest for efficient and convenient operation of the product 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc OMRON 1995 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permis sion of OMRON No patent liability is assumed with respect to the use of the information contained herein Moreover because OMRON is constantly striving to improve its high quality products the information contained in this manual is subject to change without notice Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the informa tion contained in this publication TABLE OF CONTENTS SECTION 1 Features and System Configuration 1 1 1 ID Controller Features s sceau e Re ERR RE eph REG Rhe 2 1 2 Overall ID Controller Procedure o ooo oocococooooro IA 7 SECTION 2 Hardware Components and Installation 9 2 1 Component Names and Functions 0 00 eee eee 10 2 2 System Configuration and Installation 15 2 3 Insta
155. e response SYS FAIL FAL 9C An error has occurred in ID functions and SR 25415 will be ON If an memory error has occurred the content of AR 04 will be 02 Turn the power to the ID Controller off and then back on 177 ID Controller Flags Indicator Status Message SYS FAIL FAL 9 7 ID Communications Errors Section 9 7 ERR ALM Flashing RDY Lit ERR Lit The status of other indicators is not relevant Meaning and appropriate response AR 04 03 There is an error in the ID Controller Setup relating to ID functions Correct the settings in PROGRAM mode and turn the power to the ID Controller off and then back on AR 04 04 The operating mode was changed while communicating with the Read Write Head Turn the power to the ID Controller off and then back on or clear the error and change the operating mode ID Controller Flags SR 23302 ID Communications Error Flag will turn ON if an error occurs in ID communications When this happens the following flags can be used to trouble shoot the cause of the error The following errors are recorded in the ID Control SR 23308 ler and can be read out using a Programming Console Name code DC Missing Error Flag 72 ON when There is no Data Carrier in the communications range Action Check the installation distances and program execution timing SR 23309
156. e the Data Carrier If a check code was being verified either the life of the Data Carrier has expired or it is not being used under proper conditions Check operating conditions and replace the Data Carrier if its life has expired Note SR 23307 ID Check Warning Flag will also turn ON if the IDMD 66 is not used 178 correctly Be sure to correctly operands carefully when writing or update the write count when writing the check code and when specifying check area words ID Error Logs 0 Section9 8 9 8 ID Error Logs The ID error log function registers the error code of any ID error that occurs in the ID Controller along with the date and time at which it occurred Note There is also an error log for errors in general ID Controller operation Refer to the CQM1 Operation Manual for details There are two areas used by the ID error log function The first area is the ID Error Log which contains records for up to 30 ID errors and the second area is the ID Error Statistics Log which records the number of times each type of ID error has occurred 9 999 max ID Error Log Area The ID error log is stored in DM 6450 through DM 6540 as shown below DM 6450 Error log pointer The location for storing the next error record is shown 0 to IE DM 6451 Error log record 1 DM 6452 3 words used DM 6453 A single error entry is configured as follows 5 x 15 11 8 7 0 Leadin
157. e the data RXD D Leading word no for storing reception data C Control data 0 Leftmost bytes first 1 Rightmost bytes first Bits 12 to 15 0 RS 232C port 1 Peripheral port N Number of bytes stored 4 digits BCD 0000 to 0256 3 The results of reading the data received will be stored in the AR area Check to see that the operation was successfully completed The contents of these bits will be reset each time RXD is executed RS 232C Peripheral port port AR 0800 to ARO808to RS 232C port error code 1 digit BCD 0 Normal AR 0803 AR 0811 completion 1 Parity error 2 Framing error 3 Over run error AR 0804 AR0812 Communications error AR 0807 AR0815 Reception Overrun Flag After reception was com pleted the subsequent data was received before the data was read by means of the RXD instruction Number of bytes received To reset the RS 232C port i e to restore the initial status turn ON SR 25209 To reset the peripheral port turn ON SR 25208 These bits will turn OFF auto matically after the reset The start code and end code are not included in AR 09 or AR 10 number of bytes received 116 Communications Section 5 6 Application Example This example shows a program for using the RS 232C port in the RS 232C Mode to transmit 10 bytes of data DM 0100 to DM 0104 to the computer and to store the data received from the computer in the DM area beginning with DM 0200
158. eady exists in memory the desired address must be desig nated 1 2 3 1 Bring up the initial display 2 Input the desired address It is not necessary to input leading zeroes C A A E 3 Press the Down Cursor Key Note The ON OFF status of any displayed bit will be shown if the ID Con troller is in RUN or MONITOR mode 4 Press the Up and Down Cursor Keys to scroll through the program 43 Programming Console Operations Section 3 3 3 3 9 Inserting and Deleting Instructions This operation is used to insert or delete instructions from the program It is pos sible in PROGRAM mode only RUN MONITOR PROGRAM To demonstrate this operation an IR 00105 NO condition will be inserted at program address 00206 and an IR 00103 NO condition deleted from address 00205 as shown in the following diagram Original Program Address Instruction Operands 00100 00101 00103 00104 F EIRA 00201 00102 Delete lt 00205 00103 Insert ar 00206 AND NOT 00104 00207 10000 00208 END Insertion Follow the procedure below to insert the IR 00105 NO condition at address 00206 1 2 3 1 Bring up the initial display 2 Input the address where the NO condition will be inserted and press the Down Cursor Key It is not hecassary to das leading zeroes s 3 qe the new instruction and press the INS Koy E ms 4 ER Jes Down Bc Key to insert the ne
159. ear over bit 15 The cursor indicates which bit can be changed 3 Three sets of keys are used to move the cursor and change bit status a Use the Up and Down Cursor Keys to move the cursor to the left and right 51 LSS Operations Section 3 4 b Use the 1 and O keys to change a bit s status to on or off The cursor will move one bit to the right after one of these keys is pressed c Use the SHIFT SET and SHIFT RESET Keys to force set or force re set a bit s status The cursor will move one bit to the right after one of these keys is pressed The NOT Key will clear force set or force reset status B A aom PLAY Note Bits in the DM Area cannot be force set or force reset 4 Press the WRITE Key to write the changes in memory WRITE 3 4 LSS Operations N Caution PC Model for ID Controller Expansion Instructions Program Transfer 52 Note This section describes LSS operations required for communications with the ID Controller and settings in the LSS s System Setup necessary for the ID Control ler Perform these operations before using the LSS for the ID Controller Be sure to set the correct PC model ID Controller before using the LSS All LSS data will be cleared if the PC model specified in the LSS System Setup is changed from one PC group to another Even if the PC model is changed within the same group the I O table I O comments time chart data data trac
160. ections Ambient temperature Operating 0 C to 55 C Storage 20 C to 75 C except battery Humidity 10 to 90 with no condensation Atmosphere Must be free from corrosive gasses Grounding Less than 100 Q Enclosure rating Mounted in a panel Weight 1 5 kilograms max Dimensions without cables 219 x 110 x 107 mm WxH xD Note 1 Disconnect the LG terminal of the Power Supply Unit from the GR terminal when performing insulation and dielectric strength tests If the tests are repeatedly performed with the LG and GR terminals short circuited the internal components may be damaged Acceleration G 1 M o i 1 Amplitude 0 075 10 57 150 Frequency Hz 191 Specifications Appendix B Performance Specifications Item Specification Stored program method Control method 1 0 control method Cyclic scan with direct output immediate interrupt processing Programming language Ladder diagram Instruction length 1 step per instruction 1 to 4 words per instruction Types of instructions 122 instructions 14 basic instructions Execution time Basic instructions 0 50 to 1 50 us Program capacity 3 2K words UM Input bits 16 in IR 000 IR 00000 to IR 00015 Output bits 16 in IR 100 IR 10000 to IR 10015 Work bits 3 584 bits min IR 00100 to IR 09515 IR 10100 to IR 19515
161. ecution condition when the bit assigned to it is ON A condition that produces an ON execution condition when the bit assigned to it is ON and an OFF execution condition when the bit assigned to it is OFF A logic operation which inverts the status of the operand For example AND NOT indicates an AND operation with the opposite of the actual status of the op erand bit GSS T u OFF OFF delay offset ON ON delay one to one link online edit operand operand bit operand word operating modes operating error OR output output bit output device output point output signal overflow overseeing The status of an input or output when a signal is said not to be present The OFF state is generally represented by a low voltage or by non conductivity but can be defined as the opposite of either The delay between the time when a signal is switched OFF e g by an input device or ID Controller and the time when the signal reaches a state readable as an OFF signal i e as no signal by a receiving party e g output device or ID Controller A positive or negative value added to a base value such as an address to specify a desired value The status of an input or output when a signal is said to be present The ON state is generally represented by a high voltage or by conductivity but can be defined as the opposite of either The delay between the time when an ON signal
162. ed ID Ready Flag SR 23300 ON Other Flags SR 23301 to SR 23315 OFF 61 ID Controller Area Section 4 3 62 Note The Autoread Write Cancel Bit SR 23200 will not be effective however if it is turned ON after a Data Carrier has been detected In this case execution of the AUTOREAD IDAR or AUTOWRITE IDAW instruction will be continued nor mally 1 Make sure that the ID Ready Flag SR 23300 is OFF when you turn on the Autoread Write Cancel Bit SR 23200 2 Data at the write destination for the AUTOREAD IDAR or AUTOWRITE IDAW instruction will not be changed if the instruction is cancelled SECTION 5 ID Controller Functions and Setup This section describes the functions of the ID Controller and the Setup that can be used to control those functions 5 1 ID Controller Setup 0504203054 tbe Re Pee RERO pp ERA 64 5 2 Basic Operations and I O Processes 0 eee eens 69 553 ID Communications 2r week A Re A AE 73 5 3 1 ID Communications Mode DM 6611 Bits 00 to 03 73 5 3 2 ID Communication Response Refresh Method DM 6611 Bits 04 to 07 73 5 3 3 Data Carrier Standby Time DM 6643 0 cece eee eee 74 5 3 4 Data Carrier Memory 0 20 a eee eee eee 75 5 3 5 Data Carrier Life Detection Functions 0 000 TI 5 3 6 ID Communications Instructions o ooooooooooooor or 78 5 3 7 Reading Data Carriers IDRD 61 IDAR 63 0 0 0
163. ed setting in bits 00 to 07 used Servicing time valid with bits 08 to 15 are 01 00 to 99 BCD two digits Default 5 of cycle time Example If DM 6616 is set to 0110 the RS 232C port will be serviced for 10 of the cycle time If DM 6617 is set to 0115 the peripheral port will be serviced for 1596 of the cycle time 69 Basic Operations and I O Processes Section 5 2 Cycle Time DM 6619 Input Time Constants DM 6620 High speed Timers DM 6629 Note 70 The servicing time will be 0 34 ms minimum even if a lower time is set The entire servicing time will not be used unless processing requests exist Make the settings shown below to standardize the cycle time and to eliminate variations in I O response time by setting a minimum cycle time Bit 15 0 DM6619 po Cycle time 4 digits BCD 0000 Cycle time variable 0001 to 9999 Minimum cycle time Unit 1 ms Default Cycle time variable If the actual cycle time is shorter than the minimum cycle time execution will wait until the minimum time has expired If the actual cycle time is longer than the minimum cycle time then operation will proceed according to the actual cycle time AR 2405 will turn ON if the minimum cycle time is exceeded Make the settings shown below to set the time from when the actual inputs are turned ON or OFF until the corresponding input bits are updated i e until their ON OFF status is changed Make the
164. ementing counter will take that value and the decrementing time interval will be 10 1 ms The set value is expressed in ms Using Interrupts Section 5 5 Starting Up in Scheduled Interrupt Mode Use the STIM instruction to start the interval timer in the scheduled interrupt mode C4 Interval timer no Interval timer 0 003 Interval timer 1 004 Interval timer 2 005 Co Timer set value leading word no Ca Subroutine no 4 digits BCD 0000 to 0127 Co Decrementing counter set value 4 digits BCD 0000 to 9999 Co 1 Decrementing time interval 4 digits BCD unit 0 1 ms 0005 to 0320 0 5 ms to 32 ms The meanings of the settings are the same as for the one shot mode but in the scheduled interrupt mode the timer PV will be reset to the set value and decre menting will begin again after the subroutine has been called In the scheduled interrupt mode interrupts will continue to be repeated at fixed intervals until the operation is stopped Reading the Timer s Elapsed Time Use the STIM instruction to read the timer s elapsed time C4 Interval timer no Interval timer 0 006 Interval timer 1 007 Interval timer 2 008 Co Leading word of parameter 1 C3 Parameter 2 Co Number of times counter has been decremented 4 digits BCD Co 1 Decrementing counter time interval 4 digits BCD unit 0 1 ms C3 Time since previous decrement 4 digits BCD unit 0 1 ms The time from when the int
165. emory area A one or two letter prefix used to identify a memory area in the ID Controller All memory areas except the IR and SR areas require prefixes to identify addresses in them A shift operation in which the carry flag is included in the shift Short for American Standard Code for Information Interchange ASCII is used to code characters for output to printers and other external devices A ID Controller data area allocated to flags and control bits A fundamental instruction used in a ladder diagram See special instruction The data transmission speed between two devices in a system measured in bits per second See binary coded decimal A number system where all numbers are expressed in base 2 i e numbers are written using only O s and 1 s Each group of four binary bits is equivalent to one hexadecimal digit Binary data in memory is thus often expressed in hexadeci mal for convenience A system used to represent numbers so that every four binary bits is numerically equivalent to one decimal digit The smallest piece of information that can be represented on a computer A bit has the value of either zero or one corresponding to the electrical signals ON and OFF A bit represents one binary digit Some bits at particular addresses are allocated to special purposes such as holding the status of input from external devices while other bits are available for general use in programming The location in memory where a bit o
166. en the Data Carriers do not stop in front of the Read Write Head 78 ID Communications Section 5 3 Normal Execution IDRD 61 IDWT 62 IDCA 65 and IDMD 66 When the instruction is executed processing is carried out only if a Data Carrier is present within the communications range of the Read Write Head If no Data Carrier is present a DC missing error SR 23308 will be generated Execute the instruction after making sure that a Data Carrier is present Ladder diagram execution ID processing Y Confirm presence Execute instruction 1 4 i D Process instruction Process response T Y 1 Confirm response A PEE i Use normal execution when a Data Carrier is stopped in front of the Read Write Head 5 3 7 Reading Data Carriers IDRD 61 IDAR 63 Using the Instruction Example Note The DC READ IDRD 61 and DC AUTOREAD IDAR 63 instructions are used to read data from a Data Carrier The maximum amount of data that can be read each time an instruction is executed is 256 bytes IDRD 61 reads data from the Data Carrier memory S first address and stores the data in the ID Controller memory D first word IDAR 63 places execution of the read operation on standby until a Data Carrier is detected It then reads data from Data Carrier memory and stores the data in the ID Controller IDRD 61 First source address in DC 4
167. er Data Carrier RE Servomotor controller When a pallet arrives it is moved to an alternate destination according to data within the Data Carrier The following data is set in the Data Carrier 0010 destination code 12 0011 destination code 34 The following program achieves the desired process IDRD activation m ID Ready Flag CMP 20 DM 0000 1234 r 53 ID Communications Error Flag ID Completed Flag Equals Flag Read 2 bytes of data from Data Carrier addresses 0010 and 0011 Compare the data read from the Data Carrier to 1234 If the code in the Data Carrier is 1234 move product to the branch conveyor 159 SECTION 8 Internal Processing This section described the processing that takes place within the ID Controller and explains how to calculate the time required for program execution and related processing called the scan time 8 l Internal Processing m se A REX eR T GREG A ERR 162 8 2 Computing the Cycle Time s ieriseie riipi eenen aan I i 163 8 3 Execution Times for ID Communications 20 0 cece eee eee 165 161 Internal Processing Section 8 1 8 1 Internal Processing This section explains ID Controller internal processing Operational Flowchart The overall flow of ID Controller operation is as shown in the following flowchart Power application Is DIP switch pin 2 set to ON ON Initi
168. er diagram programming used to program the ID Controller Refer to the COM Pro gramming Manual for more information on ladder diagram programming 6 1 Instruction us Paco vue tes ae S De c ent heat te scio en 122 6 2 Basic Programming Concepts o ooooooococorco es 126 6 2 NOfatIOme bie em eu am D C ete fr EAS ORI IER S And 126 6 2 2 Instniction Format 24 121 904 3 p dr Re HOw Cau E TU s 126 6 2 3 Programming Precautions 0 0 eee cee eee 128 6 2 4 Instruction Classifications 0 0 cee as 131 6 2 5 Logic Block Instructions 0 0 cee I 131 6 2 6 Differentiated Instructions 00 00 0c eee eee 133 6 3 ID Communications Instructions 0 0 00 6 eee lh 134 6 3 1 DC READ and DC AUTOREAD IDRD 61 IDAR 63 134 6 3 2 DC WRITE and DC AUTOWRITE IDWT 62 IDAW 64 136 6 3 3 DCCLEAR IDCA 65 osoren enses i p uae er hee PR 44e ERI P NRGu e bees 137 6 3 4 DC MANAGE DATA IDMD 66 0000 III 138 6 4 Basic Instructions seen ee GRE ER CURAR RERO ER A RL 140 6 4 1 LOAD LOAD NOT AND AND NOT OR and OR NOT 140 6 42 AND LOAD and OR LOAD eeseeeee eens 141 6 4 3 OUTPUT and OUTPUT NOT OUT and OUT NOT lessen 141 6 4 4 SET and RESET SET and RSET sssseeeee nee 142 6 4 5 TIMER TIM ees e rt ER REPE 142 0 4 6 COUNTER CN rada Seed sew EE e b Ee eer en 143 6 5 Selec
169. er errors can be divided broadly into the following four categories 1 Program Input Errors These errors occur when inputting a program or attempting an operation used to prepare the ID Controller for operation 2 Programming Errors These errors will occur when the program is checked using the Program Check operation 3 User defined Errors There are three instructions that the user can use to define his own errors or messages The instructions will be executed when a particular condition defined by the user has occurred during operation 4 Operating Errors These errors occur after program execution has been started a Non fatal Operating Errors ID Controller operation and program execution will continue after one or more of these errors have occurred b Fatal Operating Errors ID Controller operation and program execution will stop and all outputs from the ID Controller will be turned OFF when any of these errors have occurred The ID Controller s indicators will indicate when a ID Controller error has oc curred and an error message or code will be displayed on the Programming Console or host computer if one is connected The error code is also contained in SR 25300 to SR 25307 For the most recent errors both the type of error and time of occurrence will be recorded in an error log area DM 6570 to DM 6599 Details are provided start ing on page 110 There are flags and other information provided in the SR and AR A
170. erical ly equivalent to the value of the binary bits One word of data thus contains four digits which are numbered from right to left These digit numbers and the corresponding bit numbers for one word are shown below Digit number 3 2 1 0 Bit number 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Contents ECU sor 208 93 50 99 58 07 5 09 59 93 50 ICO EA A FEA When referring to the entire word the digit numbered 0 is called the right most digit the one numbered 3 the leftmost digit When inputting data it must be input in the proper form for the intended pur pose Bits are either ON equivalent to a binary value of 1 or OFF a binary value of 0 Word data however must be input either as decimal i e BCD or as hexadecimal depending on what is required by the instruction in which itis being used 127 Basic Programming Concepts Section6 2 Converting Different Forms Binary and hexadecimal can be easily converted back and forth because of Data Decimal Points each four bits of a binary number is numerically equivalent to one digit of a hexadecimal number The binary number 0101 1111 0101 1111 is converted to hexadecimal by considering each set of four bits in order from the right Binary 1111 is hexadecimal F binary 0101 is hexadecimal 5 The hexadeci mal equivalent would thus be 5F5F or 24 415 in decimal 163 x 5 162 x 15 16x54 15 Decimal and BCD are easily converted back and forth In this c
171. erval timer is started until the execution of this instruc tion is calculated as follows Contents of word C2 x Contents of word C2 1 Contents of word C3 x 0 1 ms If the specified interval timer is stopped then 0000 will be stored Stopping Timers Use the STIM instruction to stop the interval timer C4 Interval timer no o0 Interval timer 0 010 9 Interval timer 1 011 Interval timer 2 012 The specified interval timer will stop 103 Using Interrupts Section 5 5 Application Example In this example an interrupt is executed every 2 4 ms 0 6 ms x 4 by means of interval timer 1 Assume the default settings for all of the ID Controller Setup Inputs are not refreshed for interrupt processing 25315 First Cycle Flag Interval timer set values ON for 1 cycle MOV 21 0006 DM 0011 STIM DM 0010 0023 Sets 4 for the decrementing counter set value Sets 0 6 ms for the decrementing time inter val 00100 Interval timer 1 starts when IR 00100 turns ON 00100 Interval timer 1 stops when IR 00100 turns SBN 92 023 Every 2 4 ms the count is reached for interval timer 1 and subroutine 023 is called When the program is executed subroutine 023 will be executed every 2 4 ms while IR 00100 is ON IR 00100 m 24 ms 2 4 ms 2 4 ms ra a Subroutine 023 5 5 6 High speed Counter Interru
172. es the set value an interrupt will occur the count er will be reset and counting interrupts will continue until the counter is stopped Note 1 If the INT instruction is used during counting the present value PV will return to the set value SV You must therefore use the differentiated form of the instruction or an interrupt may never occur 2 The set value will be set when the INT instruction is executed If interrupts are already in operation then the set value will not be changed just by changing the content of SR 244 to SR 247 i e if the contents is changed the set value must be refreshed by executing the INT instruction again 98 Using Interrupts Section 5 5 Application Example Note Interrupts can be masked using the same process as for the Input Interrupt Mode but is masked are cleared using the same process the Counter Mode will not be maintained and the Input Interrupt Mode will be used instead Interrupt signals received for masked interrupts can also be cleared using the same pro cess as for the Input Interrupt Mode Counter PV in Counter Mode When input interrupts are used in Counter Mode the counter PV will be stored in the SR word corresponding to input interrupts O to 3 Values are 0000 to FFFE 0 to 65 534 and will equal the counter PV minus one Interrupt Word Input interrupt O Input interrupt 1 Input interrupt 2 Input interrupt 3 Example The present value fo
173. ess the SHIFT SET or SHIFT RESET Keys to maintain the status of the bit after the key is released In this case the force set status is indicated by an S and the force reset status is indicated by an R To return the bit to its original status press the NOT key or perform the Clear Force Set Reset operation Refer to 3 3 16 Clear Force Set Reset for de tails Forced status will also be cleared when the ID Controller s operating mode is changed unless SR 25211 is ON in which case forced status will not be cleared when changing from PROGRAM to MONITOR mode or when operation stops as the result of an error or power interruption 3 3 16 Clear Force Set Reset 3 3 17 Binary Monitor 50 1 2 3 This operation is used to restore the status of all bits which have been force set or reset It is possible in MONITOR or PROGRAM mode only RUN MONITOR PROGRAM No OK OK 1 Bring up the initial display 2 Press the SET and then the RESET Key A confirmation message will ap pear Note If you mistakenly press the wrong key press CLR and start again from the beginning 3 Press the NOT Key to clear the force set reset status of bits in all data areas Note Forced status will also be cleared when the ID Controller s operating mode is 1 2 3 changed unless SR 25211 is ON in which case forced status will not be cleared when changing from PROGRAM to MONITOR mode or when operat
174. essary to refresh inputs Bit 15 0 T T DM 6636 Timero 3DM6636 to DM 6638 DM 6637 Timer 1 DM 6638 Timer 2 Input refresh setting 2 digits BCD OO or 01 Set to 00 Default No input refresh High speed Counter Settings DM 6642 When using interval timer 2 check before beginning operation to be sure that the high speed counter ID Controller Setup DM 6642 is set to the default setting 0000 High speed counter not used Use the following instruction to activate and control the interval timer Starting Up in One Shot Mode Use the STIM instruction to start the interval timer in the one shot mode C4 Interval timer no Interval timer 0 000 Interval timer 1 001 Interval timer 2 002 Co Timer set value first word address Ca Subroutine no 4 digits BCD 0000 to 0127 Co Decrementing counter set value 4 digits BCD 0000 to 9999 Co 1 Decrementing time interval 4 digits BCD unit 0 1 ms 0005 to 0320 0 5 ms to 32 ms Each time that the interval specified in word Co 1 elapses the decrementing counter will decrement the present value by one When the PV reaches 0 the designated subroutine will be called just once and the timer will stop The time from when the STIM instruction is executed until time elapses is calcu lated as follows Contents of word C5 x Contents of word Ca 1 x 0 1 ms 0 5 to 319 968 ms If a constant is set for Co then the set value of the decr
175. etting and procedures required to communicate with a Programmable Ter minal PT connected to the ID Controller via an NT link are described in this sec tion An NT link allows you to connect a PT to the RS 232C port via a special cable to allow direct data access between the PT and the ID Controlling using a special communications system developed by OMRON Displays on the PT can be generated from ID Controller data and data input from the PT can be written to ID Controller memory Because the PT can directly ac cess and control bit and word data in the ID controller it can be connected to the ID Controller without necessarily requiring changes to the ladder diagram pro gram This lightens the load on the ID Controller and makes program develop ment far more efficient NT links are not possible on the peripheral port Set bits 12 to 15 of DM 6645 to 4 to specify an NT link for the RS 232C port Pin 5 on the ID Controller s DIP switch must be turned OFF to enable this setting As long as the proper setting is made in the ID Controller Setup and as long as the PT and ID Controller and connected with the proper Connecting Cable the NT link will be established automatically as soon as power is turned on to the ID Controller and the PT The PT will then be able to freely read the contents of ID Controller data areas such as the DM area IR area SR area TIM ONT area etc SECTION 6 Programming This section describes some of the ladd
176. etween CMP 20 and the operation which accesses the EQ LE and GR Flags may change the status of these flags Be sure to ac cess them before the desired status is changed Flags ER Indirectly addressed DM word is non existent Content of kDM word is not BCD or the DM area boundary has been exceeded EQ ON if Cp1 equals Cp2 LE ON if Cp1 is less than Cp2 GR ON if Cp1 is greater than Cp2 Address 145 Selected Special Instructions Section 6 5 Example The following example shows how to save the comparison result immediately If Saving CMP 20 Results the content of HR 09 is greater than that of 010 00200 is turned ON if the two contents are equal 00201 is turned ON if content of HR 09 is less than that of 010 00202 is turned ON In some applications only one of the three OUTs would be necessary making the use of TR 0 unnecessary With this type of program ming 00200 00201 and 00202 are changed only when CMP 20 is executed EC CMP 20 25505 00200 Greater Than 25506 Equal 25507 Less Than arose maci n Operands 00005 00200 eres morus oporana 00000 00000 00002 cmp 2o amp A O AA 09 009 t Ro 6 5 3 MOVE MOV 21 Ladder Symbols Operand Data Areas Pa ee Source word E e moviet 21 IR Pa ee AR DM HR TC LR D m word IR m AR DM HR LR Description When the execution condition is OFF MOV 21 is not executed W
177. executed has been completed 23301 OFF while instruction is being executed ON when executed has been completed 23302 ON when an error has occurred in ID communications 23306 ON when the end of the service life of the Data Carrier battery has been detected 23308 to 23313 Indicate error type with 23302 is ON Refer to page 80 for an example 6 3 3 DC CLEAR IDCA 65 Description Control Data Operand Data Areas Ladder Symbols D First destination address HEX IR SR AR DM HR TC LR C Control data IR SR AR DM HR TC LR S Initialization data IR SR AR DM HR TC LR IDCA 65 initializes the memory D first address of the Data Carrier with desig nated data S initialization data All data in designated user areas will be initial ized whether the area is write protected or not Set the control data C as shown in the following table Functions Values Number of bytes 000 Clear through last address addresses to clear 001 to 256 in BCD None Set to 0 Write data type see 0 Bytes Initializes memory with the following explanation for rightmost digits of specified initialization data Initialization Data 1 Words Initializes memory with the both digits of specified initialization data writing the leftmost byte first Set to 0 Set to 0 137 ID Communications Instructions Section 6 3 Initialization Data The following table shows t
178. f data is stored A bit address specifies the data area and word that is being addressed as well as the number of the bit with in the word See logic block and instruction block A communications path used to pass data between any of the devices con nected to it A unit of data equivalent to 8 bits i e half a word A process by which instruction execution shifts from the main program to a sub routine The subroutine may be called by an instruction or by an interrupt 203 SS M Carry Flag central processing unit CH channel checksum clock pulse clock pulse bit communications cable Completion Flag condition constant control bit control data control signal Control System controlled system count pulse counter 204 A flag that is used with arithmetic operations to hold a carry from an addition or multiplication operation or to indicate that the result is negative in a subtraction operation The carry flag is also used with certain types of shift operations A device that is capable of storing programs and data and executing the instruc tions contained in the programs In a ID Controller System the central process ing unit executes the program processes l O signals communicates with exter nal devices etc See word See word A sum transmitted with a data pack in communications The checksum can be recalculated from the received data to confirm that the data in
179. from the computer the response transmission will first be completed before the transmission is executed according to the TXD instruction In all other cases data transmission based on a TXD instruction will be given first priority This example shows a program for using the RS 232C port in the Host Link Mode to transmit 10 bytes of data DM 0000 to DM 0004 to the computer The default values are assumed for all the ID Controller Setup i e the RS 232C port is used in Host Link Mode the node number is 00 and the standard communica tions conditions are used From DM 0000 to DM 0004 1234 is stored in every word From the computer execute a program to receive ID Controller data with the standard communications conditions 00100 ARO805 If AR 0805 the Transmit Ready Flag is ON when IR 00100 turns ON the ten bytes of data DM 0000 to DM 0004 will be trans mitted The following type of program must be prepared in the host computer to receive the data This program allows the computer to read and display the data re ceived from the ID Controller while a host link read command is being executed to read data from the ID Controller 10 I DSC SAMPLE PROGRAM FOR EXCEPTION 20 CLOSE 1 30 CLS 40 OPEN COM E73 AS 1 50 gt KEYIN 60 INPUT DATA S 70 IF S THEN GOTO 190 80 PRINT SEND DATA S 90 S1 00 1 n
180. g parameters A method in which program execution results are output immediately to elimi nate the affects of the cycle time A data area used to hold only word data Words in the DM area cannot be ac cessed bit by bit A word in the DM area Electrically erasable programmable read only memory a type of ROM in which stored data can be erased and reprogrammed This is accomplished using a special control lead connected to the EEPROM chip and can be done without having to remove the EEPROM chip from the device in which it is mounted Random variations of one or more electrical characteristics such as voltage cur rent and data which might interfere with the normal operation of a device Erasable programmable read only memory a type of ROM in which stored data can be erased by ultraviolet light or other means and reprogrammed A numeric code generated to indicate that an error exists and something about the nature of the error Some error codes are generated by the system others are defined in the program by the operator An area used to store records indicating the time and nature of errors that have occurred in the system A communication setting that adjusts the number of ON bits so that it is always even See parity Processing that is performed in response to an event e g an interrupt signal A logic operation whereby the result is true if both of the premises are true or both of the premises are false In ladder di
181. g word 0 Instruction Error code i Leading word 1 Min Sec y Each stored in DM 6538 Error log record 30 Leading word 2 Day Hour digits BCD DM 6539 3 words used DM 6540 Instruction A single digit indicates the instruction as follows 1 IDRD 61 3 IDAR 63 5 IDCA 65 2 IDWT 62 4 IDAW 64 6 IDMD 66 Error code 70 to 7D see following table Clock date Date and time in AR 18 and AH 19 used ID Error Statistics Log DM 6541 through DM 6546 contain the number of errors that have occurred for each error code through a maximum of 9 999 errors for each Error code DM 6541 Errors for code 70 DC communications error DM 6542 Errors for code 71 DM 6543 Errors for code 72 DM 6544 Errors for code 7A DM 6545 Errors for code 7C Address error DM 6546 Errors for code 7D Read Write Head missing error Write protect error Verification error DC missing error 179 ID Error Logs Section 9 8 Error Log Storage Methods 1 2 3 Clearing the Error Log 180 The error log storage method is set in the ID Controller Setup DM 6655 Set any of the following methods 1 You can store the most recent 30 error log records and discard older re cords This is achieved by shifting the records as shown below so that the oldest record record 1 is lost whenever a new record is generated Lost A Error log record 1 MS Error
182. gram that is executed in response to an interrupt See normally closed condition An acronym for Japanese Industrial Standards A type of programming where execution moves directly from one point in a pro gram to another without sequentially executing any instructions in between A definer used with a jump that defines the points from and to which a jump is to be made A form of program arising out of relay based control systems that uses cir cuit type diagrams to represent the logic flow of programming instructions The appearance of the program is similar to a ladder and thus the name A symbol used in drawing a ladder diagram program An instruction that represents the conditions on a ladder diagram program The other instructions in a ladder diagram fall along the right side of the diagram and are called terminal instructions A software package installed on a IBM PC AT or compatible computer to func tion as a Programming Device See rightmost bit wora Acronym for light emitting diode a device used as for indicators or displays The highest numbered bits of a group of bits generally of an entire word or the highest numbered words of a group of words These bits words are often called most significant bits words A hardware or software connection formed between two devices Link can re fer either to a part of the physical connection between two ID Controllers or a software connection created to data existing at another
183. h DM 6639 00 to 07 Output refresh method 00 Cyclic default 01 Direct 08 to 15 Number of digits for DIGITAL SWITCH DSW instruction 00 4 digits default 01 8 digits 65 ID Controller Setup Section 5 1 Function High speed Counter Settings DM 6640 to DM 6644 The following settings are effective after transfer to the ID Controller the next time operation is started DM 6640 to 00to 15 Reserved DM 6641 DM 6642 00 to 03 High speed counter mode 0 Up down counter mode 4 Incremental counter mode 04 to 07 High speed counter reset mode 0 Z phase and software reset 1 Software reset only 08 to 15 High speed counter enable 00 Do not use high speed counter 01 Use high speed counter with settings in 00 to 07 DM 6643 00 to 15 Data Carrier standby time for autoread write execution 0000 No limit 0001 to 9999 0 1 to 999 9 s DM 6644 00 to 15 Reserved RS 232C Port Settings The following settings are effective after transfer to the ID Controller DM 6645 00 to 07 Port settings 00 Standard 1 start bit 7 bit data even parity 2 stop bits 9 600 bps 01 Settings in DM 6646 08to 11 Link words for 1 1 link 0 LR 00 to LR 63 1 LR 00 to LR 31 2 LR 00 to LR 15 12to 15 Communications mode 0 Host link 1 RS 232C no protocol 2 1 1 data link slave 3 1 1 data link master 4 NT link DM 6646 00 to 07 Baud rate 00 1 2
184. hange one of the subroutine numbers or delete one of the subroutines If the displayed address is that of RET 93 RET 93 has not been used properly Check requirements for RET 93 and correct the program Message Meaning and appropriate response COIL DUPL The same bit is being controlled i e turned ON and or OFF by more than one instruction e g OUT OUT NOT DIFU 13 DIFD 14 KEEP 11 SFT 10 Although this is allowed for certain instructions check instruction requirements to confirm that the program is correct or rewrite the program so that each bit is controlled by only one instruction JME 05 has been used with no JMP 04 with the same jump number Add a JMP 04 with the same number or delete the JME 05 that is not being used A subroutine exists that is not called by SBS 91 Program a subroutine call in the proper place or delete the subroutine if it is not required Expansion instructions those assigned to function codes 17 18 19 47 48 60 to 69 87 88 and 89 are not subject to program checks 9 4 User defined Errors MESSAGE MSG 46 FAILURE ALARM FAL 06 1 2 3 SEVERE FAILURE ALARM FALS 07 1 2 3 174 There are three instructions that the user can use to define his own errors or messages These instructions are used to send messages to the Programming Console connected to the ID Controller and cause a non fatal or a fatal error MSG 46 is used to display a mes
185. he ID Controller needs to have sufficient room to allow for I O wiring and addi tional room to ensure that the I O wiring does not hamper cooling or does not strike the cover to the control panel when it is closed As a general rule allow at least 20 mm above and below the ID Controller A cooling fan is not always necessary but may be needed in some installations Try to avoid mounting the ID Controller in a warm area or over a source of heat A cooling fan is needed if the ambient temperature may become higher than that specified If the ID Controller is mounted in an enclosure install a cooling fan as shown in the following diagram to maintain the ambient temperature within specifications ID Controller Louver System Configuration and Installation Section 2 2 External Wiring Noise If power cables must be run alongside the I O wiring that is in parallel with it at least 300 mm must be left between the power cables and the I O wiring as shown below This applies to all cables carrying 10 A or less at 400 V or 20 A or less at 220 V Low current cable s mm min 300 mm min Class 3 ground to 100 Q or less Where 1 I O wiring 2 General control wiring 3 Power cables If the I O wiring and power cables must be placed in the same duct for example where they are connected to the equipment they must be shielded from each other using grounded metal plates Metal plate iron
186. he diagram below when data is written into a word the LR area of one of the linked ID Controllers it will automatically be written identically into the same word of the other ID Controller Each ID Controller has specified words to which it can write and specified words that are written to by the other ID Controller Each can read but cannot write the words written by the other ID Controller Master Slave Master area Writes es Stes P TERME oem 1 Master area Reeser fs SSIS IS RS Written automatically moet eae Slave area A UL CRDI ro Ec CREER 1 Write Slave area ID Controller ID Controller RS 232C 1 1 link ID Controller Setup To use a 1 1 link the only settings necessary are the communications mode and the link words Set the communications mode for one of the ID Controllers to the 1 1 master and the other to the 1 1 slave and then set the link words in the ID Controller designated as the master Bits 08 to 11 are valid only for the master for link one to one The word used by each ID Controller will be as shown in the following table ac cording to the settings for the master slave and link words DM 6645 setting LR 00 to LR 63 LR 00 to LR 31 LR 00 to LR 15 Master words LROO to LR31 LROO to LR15 LROO to LRO7 Slave words LR32 to LR63 LR16 to LR31 LRO8 to LR15 118 Communications Section 5 6 Communications Procedure Application Example If the settings for the m
187. he treatment of the content of the initialization data word or constant based on the specification of the write data type in bit 13 of the control data Write data type Word Rightmost 00 to FF Data Carrier Initializes Data Carrier memory bits of memory ini with first the leftmost and then the write data tialized with rightmost byte If the number of this data bytes being cleared is odd the Leftmost 00to FF Notused last byte in Data Carrier memory bits of will be initialized with the leftmost byte of the initialization data write data Precautions The addresses that can be specified for the first destination word D depend on the Data Carrier that is being used Refer to your Data Carrier manual for details The content of the control data C must be within the specified ranges see above table Flags ER The number of bytes to write bits 00 to 11 in control data is not BCD or is out of range Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded SR 23200 ID Ready Flag was OFF or another ID communications instruction was being executed 23300 OFF while instruction is being executed ON when executed has been completed 23301 OFF while instruction is being executed ON when executed has been completed 23302 ON when an error has occurred in ID communications 23306 ON when the end of the service life of the Da
188. hen the exe cution condition is ON MOV 21 copies the content of S to D Source word Destination word q Bit status not changed Precautions DM 6144 to DM 6655 cannot be used for D TC numbers cannot be designated as D to change the PV of the timer or counter You can however easily change the PV of a timer or a counter by using BSET 71 Flags ER Indirectly addressed DM word is non existent Content of xDM word is not BCD or the DM area boundary has been exceeded EQ ON when all zeros are transferred to D 146 Selected Special Instructions Section 6 5 Example The following example shows MOV 21 being used to copy the content of IR 001 to HR 05 when IR 00000 goes from OFF to ON 00000 GMOV 21 001 Address Instruction Operands 00000 1D 00001 ewoven i ELI SD IRooo lol1 1 1 o0 o 1 1 1 0 o olo 1 o 1 HRO05 0 1 1 1 0 0 1 1 1 0 0 0 0 1 0 1 6 5 4 MOVE DIGIT MOVD 83 Operand Data Areas Ladder Symbols S Source word IR SR AR DM HR TC LR S S Di Digit designator BCD IR SR AR DM HR TC LR D Destination word IR SR AR DM HR TC LR Description When the execution condition is OFF MOVD 83 is not executed When the exe cution condition is ON MOVD 83 copies the content of the specified digit s in S to the s
189. her four digit hexadecimal value and outputs result to the result word MLB BINARY MULTIPLY Multiplies two four digit hexadecimal values and outputs result to specified result words DVB BINARY DIVIDE Divides four digit hexadecimal dividend by four digit hexa decimal divisor and outputs result to specified result words ADDL DOUBLE BCD ADD Adds two eight digit values 2 words each and content of CY and outputs result to specified result words SUBL DOUBLE BCD SUBTRACT Subtracts an eight digit BCD value and CY from another eight digit BCD value and outputs result to the result words MULL DOUBLE BCD MULTIPLY Multiplies two eight digit BCD values and outputs result to specified result words DIVL DOUBLE BCD DIVIDE Divides eight digit BCD dividend by eight digit BCD divisor and outputs result to specified result words BINL DOUBLE BCD TO DOUBLE BINARY Converts BCD value in two consecutive source words into binary and outputs converted data to two consecutive re sult words BCDL DOUBLE BINARY TO DOUBLE BCD Converts binary value in two consecutive source words into BCD and outputs converted data to two consecutive result words CMPL DOUBLE COMPARE Compares two eight digit hexadecimal values IDRD DC READ Reads data from memory in the Data Carrier IDWT DC WRITE Writes data to memory in the Data Carrie
190. hich data will be written to memory Digit number 3 2 1 0 Byte order 0 Most significant bytes first 1 Least significant bytes first P Not used Set to 00 Port 0 Specifies RS 232C port 1 Specifies peripheral port The order in which data is written to memory depends on the value of digit O of C Eight bytes of data 12345678 will be written in the following manner Digit 0 0 Digit 0 1 MSB LSB MSB LSB Precautions D and D N 2 1 must be in the same data area DM 6144 to DM 6655 cannot be used for D or N N must be BCD from 0000 to 0256 Flags ER A device is not connected to the specified port 150 Selected Special Instructions Section 6 5 AR 08 AR 09 AR 10 There is an error in the communications settings ID Controller Setup or the operand settings Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded The destination words D to D N 2 1 exceed the data area AR 0806 will be turned ON when data has been received normally at the RS 232C port Reset when RXD 47 is executed AR 0814 will be turned ON when data has been received normally at the peripheral port Reset when RXD 47 is executed Contains the number of bytes received at the RS 232C port Reset to 0000 when RXD 47 is executed Contains the number of bytes received at the peripheral port Reset to 0000 when RXD 47 is executed Note
191. his area records the number of various types of errors Statistics Log that occur in ID communications This area cannot be writ DM 6569 ten by the user Error History This area stores the error log This area cannot be written DM 6600 i by the user ID Controller This area stores information related to ID Controller opera DM 6655 Setup N M settings are made by means of peripheral de Note 1 Turning ON pin 1 of the DIP switch on the ID Controller will prevent writing even by means of peripheral devices 2 Fixed DM contents the ID Controller Setup the user program and the instructions table can all be saved to and loaded from a Memory Cassette as a single unit UM Area The UM area stores the user s program UM area contents can be read and writ ten only as program data and not as words The UM Area can contain up to 3 2K words of programming 59 ID Controller Area 4 3 SR 232 Read Write ID Controller Area Section 4 3 The following table lists the dedicated bits used for the ID Controller AUTOREAD WRITE Cancel Bit Function ON OFF Autoread write canceled RUN mode only Autoread write enabled 01 Flag Reset Bit ON OFF SR 233 flags operative SR 233 flags reset except ID Ready Flag 02 to 07 Reserved Do not use 08 Test Bit ON Test executed PROGRAM mode only OFF Test stopped 09 Test Read Write Bit ON Write test OFF Read test 10 ID E
192. hough only 3 can be shown on the display at any one time Operation is pos sible in any mode RUN MONITOR PROGRAM When a program address is being displayed the status of the bit or word in that address can be monitored by pressing the MONTR Key 1 Bring up the initial display 2 Tes the desired progra address and press the Down Cursor Key 3 qa the ae E to begin monitoring IMONTR 47 Programming Console Operations Section 3 3 If the status of a bit is being monitored that bit s status can be changed using the Force Set Reset operation Refer to page 49 for details If the status of a word is being monitored that word s value can be changed using the Hexadecimal BCD Data Modification operation Refer to page 51 for details 4 Press the CLR Key to end monitoring Bit Monitor Follow the procedure below to monitor the status of a particular bit 1 2 3 1 Bring up the initial display 2 Input the bit address of the desired bit and press the MONTR Key B SHIFT emi ovs i Note a If the ID Controller is in PROGRAM or MONITOR mode the dis played bit s status can be changed using the Force Set Reset op eration Refer to page 49 for details b Bit IR 00001 can also be specified by pressing the LD and 1 Keys reducing the number of keystrokes 3 The Up or Down Cursor Key can be pressed to display the status of the pre vious or next bit 4
193. ically set by the ID Controller when the user does not specifically set another value Many devices will assume such default conditions upon the application of power The location where an instruction places the data on which it is operating as op posed to the location from which data is taken for use in the instruction The loca tion from which data is taken is called the source An instruction that is executed only once each time its execution condition goes from OFF to ON Non differentiated instructions are executed for each scan as long as the execution condition stays ON An instruction used to ensure that the operand bit is never turned ON for more than one scan after the execution condition goes either from OFF to ON for a Differentiate Up instruction or from ON to OFF for a Differentiate Down instruc tion 205 SS M digit DIN track DIP switch direct output DM area DM word EEPROM electrical noise EPROM error code Error Log Area even parity event processing exclusive NOR exclusive OR execution condition execution cycle execution time extended counter 206 A unit of storage in memory that consists of four bits A rail designed to fit into grooves on various devices to allow the devices to be quickly and easily mounted to it Dual in line package switch an array of pins in a signal package that is mounted to a circuit board and is used to set operatin
194. ifted a specified number of units to the right or left in bit digit or word units In a rotate register data shifted out one end is shifted back into the other end In other shift registers new data either specified data zero s or one s is shifted into one end and the data shifted out at the oth er end is lost A binary value that is stored in memory along with a bit that indicates whether the value is positive or negative An error that originates in a software program The location from which data is taken for use in an instruction as opposed to the location to which the result of an instruction is to be written The latter is called the destination An instruction input with a function code that handles data processing opera tions within ladder diagrams as opposed to a basic instruction which makes up the fundamental portion of a ladder diagram A memory area containing flags and other bits words with specific functions See SYSMAC Support Software A group of instructions placed separate from the main program and executed only when called from the main program or activated by an interrupt nn SS i subroutine number SV switching capacity syntax syntax error SYSMAC Support Software system configuration system error system error message system setup timer TR area TR bit trace trace memory transfer transmission distance trigger trigger address UM area unmasked
195. ily to indicate particular conditions The same number cannot be used as both an FAL number and an FALS number To clear an FALS error switch the ID Controller to PROGRAM mode correct the cause of the error and then clear the error using the Programming Console 9 5 Operating Errors There are two kinds of operating errors non fatal and fatal ID Controller op eration will continue after a non fatal error occurs but operation will be stopped if a fatal error occurs N Caution Investigate all errors whether fatal or not Remove the cause of the error as Soon as possible and restart the ID Controller After removing the cause of the error restart the ID Controller or clear the error from the Programming Console or from other Programming Devices 9 5 1 Non fatal Errors ID Controller operation and program execution will continue after one or more of these errors have occurred Although ID Controller operation will continue the cause of the error should be corrected and the error cleared as soon as possible Indicator Status When one of these errors occurs the POWER and RUN indicators will remain lit and the ERR ALM indicator will flash ID indicators will be OFF for power inter ruptions but are not related to other errors shown here Message Meaning and appropriate response SYS FAIL FAL 01 to 99 An FAL 06 instruction has been executed in the program Check the FAL number to determine conditions that would cause execution co
196. in the range that contain the data MCMP MULTI WORD COMPARE Compares a block of 16 consecutive words to another block of 16 consecutive words CMP COMPARE Compares the contents of two words and outputs result to GR EQ and LE Flags MOV MOVE Copies source data word or constant to destination word MVN MOVE NOT Inverts source data word or constant and then copies it to destination word BIN BCD TO BINARY Converts four digit BCD data in source word into 16 bit binary data and outputs converted data to result word BCD BINARY TO BCD Converts binary data in source word into BCD and outputs converted data to result word ARITHMETIC SHIFT LEFT Shifts each bit in single word of data one bit to left with CY ARITHMETIC SHIFT RIGHT Shifts each bit in single word of data one bit to right with CY ROTATE LEFT Rotates bits in single word of data one bit to left with CY ROTATE RIGHT Rotates bits in single word of data one bit to right with CY COMPLEMENT Inverts bit status of one word of data BCD ADD Adds two four digit BCD values and content of CY and outputs result to specified result word BCD SUBTRACT Subtracts a four digit BCD value and CY from another four digit BCD value and outputs result to the result word BCD MULTIPLY Multiplies two four digit BCD values and outputs result to specified result w
197. in this manual may result in personal injury or death damage to the product or product failure Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations given ix SECTION 1 Features and System Configuration This section describes the features of an ID Controller and the types of system configuration in which it can be used 1 1 ID Controller Features delet COVE Wi ra 1 1 2 ID Controller Features correos osier Enee RII 1 1 3 ID Controller Functions ooooooooor IRR 1 1 4 ID Controller Applications 1 2 Overall ID Controller Procedure NY FWWN ND ID Controller Features Section 1 1 1 1 ID Controller Features 1 1 1 Overview An ID Controller can be used to create a non contact information system and is equipped the complete functionality of a compact high speed Programmable Controller PC Data is transferred between a Read Write Head and Data Carri ers in systems like the one shown in the following illustration ID Controller Moving object Refer to the following page numbers for specific information e Hardware 24 VDC Inputs Page 21 Transistor Outputs Page 23 Contact Outputs Page 24 Power Supply Wiring Page 30 Read Write Head Connections Page 31 e Data Areas Page 56 e Basic Operation and l O Page 69 e Data Carrier Communications Page 73 e Communications Ports P
198. ing and changing 41 ground precautions 30 hexadecimal definition 127 hexadecimal data converting displays 49 high speed counter interrupts 104 memory area 56 settings 66 high speed counter interrupts delays 21 host link communications 113 node number 113 setting parameters 115 See also RS 232C humidity 16 I O memory areas 57 specifications 15 21 wiring 18 I O refresh operations types 163 ID communication errors See communications errors ID communications 73 application examples 155 error flags 60 178 execution time 165 168 flags 61 indicators 11 instructions 3 78 134 interrupts 85 96 memory area 56 60 response refresh method 73 settings 73 specifications 15 testing 35 37 troubleshooting errors 177 ID Controller area 56 60 ID Controller Setup See settings ID Controllers models 189 ID error log See error logs Index indicators 10 11 inductive loads 19 input digital switches 89 hexadecimal keys 88 input devices wiring 20 input terminals 10 inputs indicators 11 inrush current 19 installation ambient conditions 16 clearance 16 cooling fan 16 mounting 28 mounting direction 18 precautions 16 instruction set 122 AND 140 AND LD 131 132 141 AND NOT 140 CMP 20 145 CNT 143 END 01 145 ID communications 134 IDAR 63 78 79 134 IDAW 64 78 80 136 IDCA 65 82 137 IDMD 66 83 138 IDRD 61 79 134 IDWT
199. ion stops as the result of an error or power interruption This operation is used to monitor the ON OFF status of any word s 16 bits It is possible in any mode RUN MONITOR PROGRAM 1 Monitor the status of the desired word according to the procedure described in 3 3 12 Bit Digit Word Monitor The desired word should be leftmost on the display if 2 or more words are being monitored 2 Press the SHIFT and then the MONTR Key to begin binary monitoring The ON OFF status of the selected word s 16 bits will be shown along the bottom of the display A 1 indicates a bit is on and a 0 indicates it is off nd 1 The status of force set bits is indicated by S and the status of a force reset bits is indicated by R as shown below Force set bit Force reset bit Programming Console Operations Section 3 3 Note a The status of displayed bits can be changed at this point Refer to 3 3 19 Binary Data Modification for details b The Up or Down Cursor Key can be pressed to display the status of the previous or next word s bits 3 Press the CLR Key to end binary monitoring and return to the normal moni toring display Press the SHIFT CLR Keys to end monitoring altogether 3 3 18 Hexadecimal BCD Data Modification 1 2 3 This operation is used to change the BCD or hexadecimal value of a word being monitored using the procedure described in 3 3 12 Bit Digit Word Monitor It is pos
200. is connected to the ID Controller when ID Con troller power is applied the ID Controller will enter the mode set on the Pro gramming Console s mode selector Other Peripheral Device mounted If a Programming Console is not mounted to the ID Controller but another Peripheral Device is connected to the ID Controller the ID Controller will en ter PROGRAM mode Component Names and Functions Section 2 1 If the ID Controller power supply is already turned on when a Peripheral Device is attached to the ID Controller the ID Controller will stay in the same mode it was in before the peripheral device was attached If the Programming Console is connected the ID Controller will enter the mode set on the Programming Con sole s mode selector once the password has been entered 2 1 4 Memory Cassettes Six Memory Cassettes are available as accessories to store the program or ID Controller Setup The following CQM1 Memory Cassettes are used for ID Con trollers Note When pin 2 of the ID Controller s DIP switch is ON the contents of the Memory Cassette will be transferred to the ID Controller automatically at start up Clock Function CQM1 ME04K CQM1 ME04R Comments The Programming Console is used to write to EEPROM 4K words CQM1 ME08K CQM1 ME08R The Programming Console is used to write to EEPROM 8K words CQM1 MPO8K CQM1 MP08R A PROM Writer is used to write to EPROM Memory
201. is initiated e g by an input de vice or ID Controller and the time when the signal reaches a state readable as an ON signal by a receiving party e g output device or ID Controller See 1 1 link The process of changed the program directly in the ID Controller from a Pro gramming Device Online editing is possible in PROGRAM or MONITOR mode In MONITOR mode the program can actually be changed while it is being The values designated as the data to be used for an instruction An operand can be input as a constant expressing the actual numeric value to be used or as an address to express the location in memory of the data to be used A bit designated as an operand for an instruction A word designated as an operand for an instruction One of three ID Controller modes PROGRAM mode MONITOR mode and RUN mode An error that occurs during actual ID Controller operation as opposed to an ini tialization error which occurs before actual operations can begin A logic operation whereby the result is true if either of two premises is true or if both are true In ladder diagram programming the premises are usually ON OFF states of bits or the logical combination of such states called execution condi tions The signal sent from the ID Controller to an external device The term output is often used abstractly or collectively to refer to outgoing signals A bit in the IR area that is allocated to hold the status to be sent to an output d
202. is used to display and clear error messages It is possible to dis play and clear non fatal errors and MESSAGE instruction messages in any mode but fatal errors can be displayed and cleared in PROGRAM mode only RUN MONITOR PROGRAM Before inputting a new program any error messages recorded in memory should be cleared It is assumed here that the causes of any of the errors for which error messages appear have already been taken care of If the buzzer sounds when an attempt is made to clear an error message eliminate the cause of the error and then clear the error message Follow the procedure below to display and clear messages 1 Bring up the initial display 2 Press the FUN and then the MONTR Key to begin the operation If there are no messages the following display will appear If there are messages the most serious message will be displayed when the MONTR Key is pressed Pressing MONTR again will clear the present mes sage and display the next most serious error message Continue pressing MONTR until all messages have been cleared These are some examples of error messages Programming Console Operations Section 3 3 A fatal error A non fatal error IMONTR lt o z 5 y All messages cleared IMONTR 3 3 5 Buzzer Operation Key Sequence 1 2 3 Note This operation is used to turn on and off the buzzer that sounds when Program ming
203. l Blocks 2 6 eed oo Apa we bess WIS BEE BSS EIS G4 A 18 2 2 4 I O Wiring Precautions 0 0 eee es 18 2 2 5 l O Specifications i e ae e eS eR PAS eee Ss 21 2 2 6 Connectable Devices oooooocococcoccococorr teens 25 2 2 7 Connecting External Devices via RS 232C Port oooooooococooomomoo 26 2 3 Installing the ID Controller sleseeeeeeee RIA 28 2 3 1 Mounting the ID Controller leeleeeeee I 28 2 3 2 Wiring the Power Supply ooo oooococcococcno ee 30 2 3 3 Connecting the Read Write Head 0 00 cee eee eee ee 31 Component Names and Functions Section 2 1 2 1 Component Names and Functions The following diagram shows the basic components that are used in general op eration of the ID Controller Input Terminals and Indicators Sixteen 24 VDC input terminals including 4 interrupt inputs and up down counter inputs Output Terminals and Indicators Sixteen contact or 16 transistor outputs Indicators Display operating status Battery Set Cassette optional Read Write Head Connector Used to connect the Read Write Head for the ID Sensor DIP switch RS 232C Port Used for communications with external devices such as a computer running Power Supply and Indicator Peripheral Port LSS SSS or other ID Controllers Indicator lights when power is being SUP Used to connect to Peripheral Units such as a Pro plied External connection terminals gram
204. ld Bit OFF Bits that are forced set reset are cleared when switching from PROGRAM mode to MONITOR mode ON The status of bits that are forced set reset are maintained when switching from PRO GRAM mode to MONITOR mode I O Hold Bit OFF IR and LR bits are reset when starting or stopping operation ON IR and LR bit status is maintained when starting or stopping operation Not used Error Log Reset Bit Turn ON to clear error log DM6569 through DM6599 Automatically turns OFF again when operation is complete Output OFF Bit OFF Normal output status ON All outputs turned OFF 195 SR and AR Area Allocations Appendix D Function 00 to 07 FAL Error Code The error code a 2 digit number is stored here when an error occurs The FAL number is stored here when FAL 06 or FALS 07 is executed This word is reset to 00 by executing a FAL 00 instruction or by clearing the error from a Peripheral Device 08 Low Battery Flag Turns ON when the ID Controller battery voltage drops 09 Cycle Time Overrun Flag Turns ON when a cycle time overrun occurs i e when the cycle time exceeds 100 ms 10 to 12 Not used 13 Always ON Flag 14 Always OFF Flag 15 First Cycle Flag Turns ON for 1 cycle at the start of operation 00 1 minute clock pulse 30 seconds ON 30 seconds OFF 01 0 02 second clock pulse 0 01 second ON 0 01 second OFF 02 to 03 Not used 04 Overflow OF Flag Turns ON when the res
205. le SEVERE FAILURE ALARM Generates a fatal error and outputs the designated FALS number to the Programming Console STEP DEFINE When used with a control bit defines the start of a new step and resets the previous step When used without N defines the end of step execution STEP START Used with a control bit to indicate the end of the step reset the step and start the next step SHIFT REGISTER Creates a bit shift register KEEP Defines a bit as a latch controlled by set and reset inputs 122 REVERSIBLE COUNTER Increases or decreases PV by one whenever the incre ment input or decrement input signals respectively go from OFF to ON Instruction Set Mnemonic DIFU DIFFERENTIATE UP Section 6 1 Function Turns ON the designated bit for one cycle on the rising edge of the input signal DIFD DIFFERENTIATE DOWN Turns ON the bit for one cycle on the trailing edge TIMH HIGH SPEED TIMER A high speed ON delay decrementing timer WSFT WORD SHIFT Shifts data between starting and ending words in word units writing zeros into starting word ASFT ASYNCHRONOUS SHIFT REGISTER Creates a shift register that exchanges the contents of adjacent words when one of the words is zero and the oth er is not SRCH DATA SEARCH Searches the specified range of memory for the specified data Outputs the word address es of words
206. led and the pulse output is stopped by setting the frequency to 0 When the program is executed operation will be as follows 5 6 Communications The following types of communications can be executed through the ports of the ID Controller e Host link communications with a host computer e RS 232C communications with a computer or other device e One to one link communications with another ID Controller e NT links with Programmable Terminals This section explains the required ID Controller Setup and methods for using these types of communications 110 Pulse frequency Hz 500 200 A Time elapsed s Communications Section 5 6 5 6 1 ID Controller Setup The ID Controller Setup parameters in DM 6645 through DM 6654 are used to set parameters for the communications ports The parameters for the RS 232C port in DM 6645 through DM 6649 can be set from menu operations using the LSS SSS Note If pin 5 on the ID Controller s DIP switch is turned ON the ID Controller Setup communications parameters will be ignored and the following parameters will be used Mode Host link Node number 00 Start bits 1 bit Data length 7 bits Stop bits 1 bit Parity Even Baud rate 2 400 bps Transmission delay None The settings in DM 6645 and DM 6650 determine the main communications pa rameters as shown in the following diagram Bit 15 0 DM 6645 RS 232C port DM 6650 Peripheral port l i C
207. ll three operands Clearing all of memory 125 75 Words for all three operands Clearing all of memory 195 75 gt KDM for all three operands Clearing all of memory 66 IDMD 118 75 Constant for all three operands Incrementing counter 127 75 Words for all three operands Incrementing counter 195 75 gt KDM for all three operands Incrementing counter 119 75 Constant for all three operands Decrementing counter 133 75 Words for all three operands Decrementing counter 199 75 gt KDM for all three operands Decrementing counter 119 75 Constant for all three operands Calculating check code 131 75 Words for all three operands Calculating check code 199 75 gt KDM for all three operands Calculating check code 119 75 Constant for all three operands Verifying check code 127 75 Words for all three operands Verifying check code 199 75 gt KDM for all three operands Verifying check code 167 Execution Times for ID Communications Section 8 3 Data Carrier Speed ID Communications Time 168 The maximum data carrier speed can be computer by dividing the distance of travel within the communications range by the ID communications time as shown below Refer to the following diagrams for Carrier speed Distance within communications range ID communications time Refer to the following diagrams for the ID communications time The distance of travel within the communications range varies with the Read W
208. lled 00 to 15 Not used 00 to 15 Power off Counter 4 digits BCD This is the count of the number of times that the power has been turned off To clear the count write 0000 from a peripheral device 199 SR and AR Area Allocations Appendix D Function Power on ID Controller Setup Error Flag Turns ON when there is an error in DM 6600 to DM 6614 the part of the ID Controller Setup area that is read at power up Start up ID Controller Setup Error Flag Turns ON when there is an error in DM 6615 to DM 6644 the part of the ID Controller Setup area that is read at the beginning of operation RUN ID Controller Setup Error Flag Turns ON when there is an error in DM 6645 to DM 6655 the part of the ID Controller Setup area that is always read 03 04 Not used 05 Long Cycle Time Flag Turns ON if the actual cycle time is longer than the cycle time set in DM 6619 06 07 Not used 08 to 15 Code 2 digits hexadecimal showing the word number of a detected I O bus error 00 Corresponds to input word 000 80 Corresponds to output words 100 FF End cover cannot be confirmed 00 to 15 Not used 00 to 15 Maximum Cycle Time 4 digits BCD The longest cycle time since the beginning of operation is stored It is cleared at the beginning and not at the end of operation The unit can be any of the following depending on the setting of the 9F monitoring time DM 6618 Default 0 1 ms
209. ller is not exceeded There fore use as many conditions as required to draw a clear diagram Basic Programming Concepts Section6 2 There must not be any conditions on lines running vertically between two oth er instruction lines Diagram A shown below for example is not possible and should be drawn as diagram B Mnemonic code is provided for diagram B only coding diagram A would be impossible 00000 00002 Instruction 1 00004 00001 00003 Instruction 2 Diagram A Not Programmable E 00000 00007 00000 00004 00003 00002 oR 00000 00002 4E 00000 00004 Diagram B Correct Version 00007 OR 00001 00008 AND NOT 00003 00009 Instruction 2 The number of times any particular bit can be assigned to conditions is not limited so use them as many times as required to simplify your program Often complicated programs are the result of attempts to reduce the number of times a bit is used Except for instructions for which conditions are not allowed e g INTER LOCK CLEAR and JUMP END see below every instruction line must also have at least one condition on it to determine the execution condition for the instruction at the right Again diagram A below must be drawn as diagram B If an instruction must be continuously executed e g if an output must always be kept ON while the program is being executed the Always ON Flag SR 25313 in the SR area can be used Instruction Diagram A Not Progr
210. lling the ID Controller occ ove die eee a ERE ER 28 SECTION 3 Programming Device Operations 33 3 1 Applicable Programming Devices ooo oococococororrr eee 34 3 2 Programming Console Preparations 0 0 0 0c eee eee 34 3 3 Programming Console Operations 0 0 0 cece eee eee 37 3 4 LSS Operations is ee ia era y RR pa a ws Be ERR NER ee gle E ep S 32 3 9 SSS Operations ccd hae OG ee EE ES ER d ERR ER E 53 SECTION 4 VACA AT CAS 9 a CAL DES CCS CA CA 55 dol Data Area Structure ove pee S pA ERA A EU RSEN VERDE EAE rene e E de 56 4 2 Data Area Functions A de E E S 57 4 3 ID Controller Area eee RR RRRRRRRRRRRRRRRR ns 60 SECTION 5 ID Controller Functions and Setup 63 5 4 ID Controller Setup iia puntas TAE exin D IUBE ES UR LEA 64 5 2 Basic Operations and I O Processes 0 0 0 cee eh 69 5 3 AD COMMUNICATIONS ueni vReRe ew da ee ARR e 73 5 4 Advanced I O Instructions 0 0 ec m eens 86 5 5 Using Interrupts oo ccc EAA SER a eS RERO NU ER es 94 520 COMMUNICAUIONS s eos e dee d eR AS DR Pedo er LS AON e eden a 110 SECTION 6 PrOSEJPIIHIHO 4cru2uclop eiue rewwiare breauueeswr RA 6 1 jdnstruction Set La bead IA DRM NP AS AI P E US AE 122 6 2 Basic Programming Concepts 00 cece cece eee eee eee 126 6 3 ID Communications Instructions n e 0 0 00 eee eee eee 134 6 4 Basic Instructions 0 ccc cc eee eee hh hn
211. lowing table Process Calculation method Time with peripheral device Overseeing Fixed 0 9 ms Program execution 0 625 x 2000 us 1 25 ms Cycle time calculation Negligible 0 ms I O refresh 0 01 0 005 ms 0 015 ms RS 232C port servicing Not used 0 ms Peripheral port servicing Minimum time 0 34 ms Cycle time 1 2 3 4 5 6 505 ms 2 165 if peripheral port is not used Note 1 The cycle time can be automatically read from the ID Controller via a Periph eral Device 2 The maximum and current cycle time are stored in AR 26 and AR 27 3 The cycle time can vary with actual operating conditions and will not neces sarily agree precisely with the calculated value 4 The RS 232C and peripheral port service time will be 0 34 ms minimum 87 ms maximum 164 Execution Times for ID Communications Section 8 3 8 3 Execution Times for ID Communications This section shows how to calculate the TAT turn around time for ID Controller communications The TAT is the time from when a communications instruction is executed in the ladder diagram program until a response is received ID Communications The is always some what of a delay between executing an ID communications instruction communicating with a Data Carrier and receiving the results back to the ID Controller This time called the TAT varies with the specifications for the ID communications instruction and the operating conditions
212. ly PNP current output Sensor power supply Output Voltage output Output oV Sensor power supply 20 System Configuration and Installation Section 2 2 2 2 5 O Specifications 24 VDC Inputs 16 pts Specification Model IDSC C1D 7 A E Input Voltage 24 VDC 10 _15 Input Impedance IN4 and IN5 2 2 kQ other inputs 3 9 kQ Input Current IN4 and IN5 10 mA typical other inputs 6 mA typical at 24 VDC ON Voltage 14 4 VDC min OFF Voltage 5 0 VDC max ON Delay Default 8 ms max can be set between 1 and 128 ms in ID Controller Setup see note OFF Delay Default 8 ms max can be set between 1 and 128 ms in ID Controller Setup see note No of Inputs 16 points 16 inputs common 1 circuit Circuit Configuration Input INO 9 9 LED 3 9kQ A 2 2 kQ 2 gt 7 Internal Circuits l Note Figures in parentheses are for IN4 and IN5 The input power supply polarity may be con nected in either direction Terminal Connections Note INO through IN3 can be set for use as input interrupts in the ID Controller Setup The ON and OFF delays for input interrupts are fixed at 0 1 ms max and 0 5 ms max respectively IN4 through IN6 can be set for use as high speed counter interrup
213. me 165 list 25 memory 75 production date 76 reading 79 134 example 157 159 service life management 77 83 138 speed 168 standby time 74 write protection 76 77 writing 80 136 example 156 158 date reading and changing 42 definers definition 126 217 Index differentiated instructions 133 entering 46 function codes 126 digit numbers 127 dimensions 193 DIN Track 28 DIP switch 10 displays converting between hex and ASCII 49 cycle time 49 DM Area protecting 10 ducts I O wiring 17 power cables 17 E EEPROM write protection 14 electrostatic charges 16 EMC 31 EPROM chips 14 installation 14 error logs 179 control bits 60 FAL numbers 174 ID overview 4 reading 38 settings 68 71 72 errors See also error logs communications 4 176 fatal 176 177 general 172 ID communications error flags 60 178 indicators 11 non fatal 175 177 programming 173 Programming Console operations 173 reading error logs 38 reading clearing messages 40 troubleshooting via ID indicators 177 types 172 user message displays 174 user programmed errors 174 expansion instructions 52 125 reading and changing 41 setting for defaults 10 F FAL 06 174 FALS 07 174 features 3 218 flags AR Area 197 arithmetic 146 resetting 60 SR Area 195 force resetting 49 force setting 49 force set reset 49 clearing 50 function codes 126 read
214. ming Concepts Section6 2 AND LOAD 132 Although simple in appearance the diagram below requires an AND LOAD instruction Instruction ED Acaress Instruction Operands 00000 00000 00001 OR 00001 0004 ANDip 00005 imsmudion The two logic blocks are indicated by dotted lines In this example an ON execution condition will be produced when either of the conditions in the left logic block is ON i e when either IR 00000 or IR 00001 is ON and when either of the conditions in the right logic block is ON i e when either IR 00002 is ON or IR 00003 is OFF The above ladder diagram cannot however be converted to mnemonic code using AND and OR instructions alone If an AND between IR 00002 and the results of an OR between IR 00000 and IR 00001 is attempted the OR NOT between IR 00002 and IR 00003 is lost and the OR NOT ends up being an OR NOT between just IR 00003 and the result of an AND between IR 00002 and the first OR What we need is a way to do the OR NOT s independently and then combine the results To do this we can use the LOAD or LOAD NOT instruction in the middle of an instruction line When LOAD or LOAD NOT is executed in this way the current execution condition is saved in special buffers and the logic process is begun over To combine the results of the current execution condition with that of a previous unused execution condition an AND LOAD or an OR LOAD i
215. ming Console or a computer running LSS SSS 2 1 1 DIP Switch The DIP switch is located under a cover on the front of the ID Controller as shown above The setting of these switches is described in the following table Setting Function Program Memory and read only DM DM 6144 to DM 6655 data cannot be overwritten from a Peripheral Device Program Memory and read only DM DM 6144 to DM 6655 data can be overwritten from a Peripheral Device Autoboot enabled The contents of Memory Cassette will be transferred to the ID Controller automatically at start up Autoboot disabled Programming Console messages will be displayed in English Programming Console messages will be displayed in the lan guage stored in system ROM Messages will be displayed in Japanese with the Japanese version of system ROM Expansion instructions set by user Normally ON when using a host computer for programming monitoring Expansion instructions set to defaults RS 232C communications governed by default settings 1 start bit even parity 7 bit data 1 stop bit 2 400 bps RS 232C communications not governed by default settings The setting of pin 6 determines the ON OFF status of AR 0712 If pin 6 is ON AR 0712 will be ON and if pin 6 is OFF AR 0712 will be OFF Note All DIP switch pins except pin 3 are turned OFF at the factory 10 Component Names and Functions Section 2 1 2 1 2 Indicators
216. most instruction into the ID Controller These are de scribed later The END instruction requires no operands and no conditions can be placed on the same instruction line with it 00000 00001 END 01 Program execution ends here aceros insiruion Operands 00500 00000 00501 AND NOT 00001 0502 msmucon oos ENDO If there is no END instruction anywhere in the program the program will not be executed at all 6 2 4 Instruction Classifications There are four classifications of instructions used with the ID Controller e Basic Instructions The most frequently used instructions e Special Instructions A wide range of instructions for special purposes e Expansion Instructions Additional special instructions requiring allocations of function codes before usage e Advanced I O Instructions Special instructions used to control more com plex I O operations AN Caution Although ID communications instruction are classified as expansion instruc tions you cannot change the function codes allocated to them 6 2 5 Logic Block Instructions Logic block instructions do not correspond to specific conditions on the lad der diagram rather they describe relationships between logic blocks The AND LOAD instruction logically ANDs the execution conditions produced by two logic blocks The OR LOAD instruction logically ORs the execution condi tions produced by two logic blocks 131 Basic Program
217. n Mode Incrementing Mode SR 231 SR 230 F0032767 to 00032767 00000000 to 00065535 732767 Note These words are refreshed only once every cycle so there may be a difference from the actual PV The PRV instruction will provide more accurate results 108 Using Interrupts Section 5 5 Leftmost 4 digits Leftmost 4 digits D 1 Operation Example When the high speed counter is not being used the bits in these words can be used as work bits Using the PRV Instruction Read the PV of the high speed counter by using the PRV instruction Q PRV 1 P1 Leading word of PV The PV of the high speed counter is stored as shown below The leftmost bit will be F for negative values Rightmost 4 digits Up Down Mode Incrementing Mode F0032767 to 00032767 00000000 to 00065535 732767 The PV is read when the PRV instruction is actually executed Changing the PV There are two ways to change the PV of the high speed counter The first way is to reset it by using the reset methods In this case the PV is reset to 0 The se cond way is to use the INI instruction The method using the INI instruction is explained here For an explanation of the reset method refer to the beginning of this description of the high speed count er Change the counter PV by using the INI instruction as shown below D Leading word for storing PV change data Rightmost 4 digits Up Down Mode Incrementing Mode
218. n wires Yes Tighten screws or replace wires Is Power indicator lit Bt Replace the ID End Controller Note The allowable voltage range for the ID Controller is 85 to 264 VAC 183 Troubleshooting Flowcharts Section9 9 Fatal Error Check The following flowchart can be used to troubleshoot fatal errors that occur while the Power indicator is lit RUN indicator not lit Is the ERR ALM indicator lit Determine the cause of the error with a Peripheral Device Is ID Controller mode displayed on Peripher al Device Is ID Controller mode displayed on Peripher al Device Correct the power supply Is a fatal error m displayed Identify the error eliminate its cause and clear the er ror Switch to RUN or MONITOR mode Is the ERR ALM indicator lit Replace the ID Controller 184 Troubleshooting Flowcharts Section9 9 Non fatal Error Check Although the ID Controller will continue operating during non fatal errors the cause of the error should be determined and removed as quickly as possible to ensure proper operation lt may to necessary to stop ID Controller operation to remove certain non fatal errors ERR ALM indicator flashing Determine the cause of the error with a Peripheral Device Is a non fatal error in dicated Identify the error See page 175 eliminate its cause and clear the error Flashing Is the E
219. ned for an IBM PC AT computer A group of operating parameters set in the ID Controller from a Programming Device to control ID Controller operation Increasing a numeric value usually by 1 An address whose contents indicates another address The contents of the sec ond address will be used as the actual operand An error that occurs either in hardware or software during the ID Controller Sys tem startup i e during initialization Part of the startup process whereby some memory areas are cleared system setup is checked and default values are set The signal coming from an external device into the ID Controller The term input is often used abstractly or collectively to refer to incoming signals A bit in the IR area that is allocated to hold the status of an input An external device that sends signals into the ID Controller System The point at which an input enters the ID Controller System Input points corre spond physically to terminals or connector pins A change in the status of a connection entering the ID Controller Generally an input signal is said to exist when for example a connection point goes from low to high voltage or from a nonconductive to a conductive state A direction given in the program that tells the ID Controller of the action to be carried out and the data to be used in carrying out the action Instructions can be used to simply turn a bit ON or OFF or they can perform much more complex actions
220. ng 0000 sets continuous standby until a Data Carrier is detected The following error will be generated if an approaching Data Carrier is not detected before the standby time has elapsed DC missing error Error code 72 AR 2401 will turn ON if an error is generated by the ID Controller Setup when operation is started i e when power is turned on or after switching to RUN mode Bit SR 23200 AUTOREAD WRITE Cancel Bit can be manipulated from the program to cancel the standby status when executing CD AUTOREAD CD AU TOWRITE with a standby setting of 0000 indefinite standby The following two examples show two ways this bit can be used Canceling with Timer Start 23300 SET 23200 RSET 23200 ID Ready Flag T000 eo Standby cancelled ID Communications S Section533 5 3 4 Data Carrier Memory A one byte of data 8 bits can be written to each address in the Data Carrier The way that Data Carrier memory is used depends on its memory capacity The production month year area is not available if Data Carrier memory capacity is less than 256 bytes DC with a Memory Capacity of 256 Bytes or Less m Data gt Address 0000 Write protected area 0001 0002 0003 User area DC with a Memory Capacity of More Than 256 Bytes Address Data 0000 0001 0002 to Write protected area 0005 0006 to to 00FF 0100 Production date month year area
221. ns 10 ms or longer TIMH 15 may be inaccurate when TC 016 through TC 511 are used operation will be normal for TC 000 through TC 015 see note 1 20 ms or longer Programming using the 0 02 second Clock Bit SR 25401 may be inaccurate 100 ms or longer Programming using the 0 1 second Clock Bit SR 25500 may be inaccurate A CYCLE TIME OVER error is generated SR 25309 will turn ON see note 2 120 ms or longer The FALS 9F monitoring time SV is exceeded A system error FALS 9F is generated and opera tion stops see note 3 200 ms or longer Programming using the 0 2 second Clock Bit SR 25501 may be inaccurate Note 1 The number of timers to undergo interrupt processing can be set in DM 6629 of the ID Controller Setup The default setting is for TC 000 through TC 015 2 The ID Controller Setup DM 6655 can be used to disable detection of CYCLE TIME OVER error 3 The FALS 9F cycle monitoring time can be changed by means of the ID Con troller Setup DM 6618 Cycle Time Example In this example the cycle time is calculated for the ID Controller The operating conditions are assumed to be as follows User s program 2 000 instructions configured of LD and OUT instructions Clock None RS 232C port Not used Cycle time Variable no minimum set Note The average processing time for a single instruction in the user s program is as sumed to be 0 625 us The cycle times are as shown in the fol
222. nsole DM 6600 to DM 6644 can be set or changed only while in PROGRAM mode DM 6645 to DM 6655 can be set or changed while in either PROGRAM mode or MONITOR mode Note The ID Controller Setup can be read but not written into from the user program Writing can only be done by means of a Programming Device If a ID Controller Setup setting is improper then a non fatal error error code 9B will be generated when the ID Controller reads that setting and the appropriate bit between AR 2400 and AR 2402 will turn ON The erroneous setting will be read at the default value The following settings can be made in PROGRAM mode from the LSS SSS us ing menu operations All other settings must be made using the hexadecimal setting operation Startup Mode DM 6600 I O Hold Bit Status and Forced Status Hold Bit Status DM 6601 Cycle Monitor Time DM 6618 Cycle Time DM 6619 RS 232C Port Settings DM 6645 to DM 6649 68 Basic Operations and I O Processes Section 5 2 5 2 Basic Operations and I O Processes This section explains the ID Controller Setup settings related to basic ID Control ler operation and l O processes Startup Mode DM 6600 The operation mode the ID Controller will start in when power is turned on can be set as shown below Bit 15 0 DM6600 Startup Mode Designation 00 Programming Console Mode Selector If not connected RUN mode 01 Operating mode last used before power was turned off 02
223. nstruction is used Here LOAD refers to loading the last unused ex ecution condition An unused execution condition is produced by using the LOAD or LOAD NOT instruction for any but the first condition on an instruc tion line The condition for IR 00000 is a LOAD instruction and the condition below it is an OR instruction between the status of IR 00000 and that of IR 00001 The condition at IR 00002 is another LOAD instruction and the condition below is an OR NOT instruction i e an OR between the status of IR 00002 and the inverse of the status of IR 00003 To arrive at the execution condition for the instruction at the right the logical AND of the execution conditions resulting from these two blocks would have to be taken AND LOAD does this The mnemonic code for the ladder diagram is shown below The AND LOAD in struction requires no operands of its own because it operates on previously determined execution conditions Here too dashes are used to indicate that no operands needs designated or input Basic Programming Concepts Section6 2 OR LOAD The following diagram requires an OR LOAD instruction between the top log ic block and the bottom logic block An ON execution condition would be pro duced for the instruction at the right either when IR 00000 is ON and IR 00001 is OFF or when IR 00002 and IR 00003 are both ON The opera tion of and mnemonic code for the OR LOAD instruction is exactly the same as those for a
224. nstructions There is no limit to the number of work bits that can be used In the following example IR 10201 is used in programming to created a self holding output Wrong Must be moved to before OUTPUT instruction 2 00000 00003 00004 1 E 1 00001 10201 Work bit Creating self holding output 3 You cannot place input conditions to the right of output instructions i e instructions controlling bit status or special instructions In the above exam ple IR 00004 must be moved to before the OUTPUT instruction 4 Do not use any bit or word addresses not supported by the ID Controller see Section 4 Data Areas for details 5 Do not control the status of the same output bit with more than one place in the program 6 Output instructions can be programmed in parallel 00000 ib 9990 00003 10202 130 Basic Programming Concepts Section6 2 7 The END instruction must be placed at the end of the program When the CPU scans the program it executes all instructions up to the first END in struction before returning to the beginning of the program and beginning ex ecution again Although an END instruction can be placed at any point in a program which is sometimes done when debugging no instructions past the first END instruction will be executed until it is removed The number fol lowing the END instruction in the mnemonic code is its function code which is used when inputted
225. nterrupt response time for other interrupts will be improved if interrupt proces sing is set to 00 when high speed timer processing is not required This includes any time the cycle time is less than 10 ms Note If the SPED instruction is used and pulses are output at a frequency of 500 Hz or greater then set the number of high speed timers with interrupt pro cessing to four or less Refer to information on the SPED instruction in the CQM 1 Programming Manual for details Make the settings shown below to set the number of input digits the DSW instruction and to set the output refresh method Bit 15 0 DM6639 Number of input digits for the DSW LE 00 4 digits 01 8 digits Output refresh method 00 Cyclic 01 Direct Default The number of input digits for the DSW instruction is set to 4 and the output refresh method is cyclic Refer to the CQM1 Programming Manual for details on the DSW instruction and for details on I O refresh methods Make the settings shown below for detecting errors and storing the error log Cycle Monitor Time DM 6618 Bit 15 0 DM6618 j L Cycle Monitor Time Enable and Unit 00 Setting disabled time fixed at 120 ms 01 Setting in 00 to 07 enabled unit 10 ms 02 Setting in 00 to 07 enabled unit 100 ms 03 Setting in 00 to 07 enabled unit 1 s Cycle monitor time setting When bits 08 to 15 are not 00 00 to 99 2 digits BCD unit set in
226. nting pulses A phase leading edge to B phase leading edge to A phase trailing edge to B phase trailing edge The following signal transitions are handled as reverse decrementing pulses B phase leading edge to A phase leading edge to B phase trailing edge to A phase trailing edge The count range is from 32 767 to 32 767 for Up Down Mode and from 0 to 65 535 for Incrementing Mode Pulse signals can be counted at up to 2 5 kHz in Up Down Mode and up to 5 0 kHz in Incrementing Mode The Up Down Mode always uses a 4X phase difference input The number of counts for each encoder revolution would be 4 times the resolution of the count er Select the encoder based on the countable ranges Reset Methods Either of the two methods described below may be selected for resetting the PV of the count i e setting it to O Z phase signal software reset The PV is reset when the Z phase signal re set input turns ON after the High speed Counter Reset Bit SR 25200 is turned ON Software reset The PV is reset when the High speed Counter Reset Bit SR 25200 is turned ON Z phase signal software reset Software reset 1 or more SAS 7 1 1 or more cycles ia zs Z phase reset input SR25200 SR25200 1 or more cycles Within 1 cycle Y Within 1 cycle Y Reset by interrupt Reset by cycle Not reset Reset by cycle Note 1 The High speed Counter Reset Bit SR 25200 is refreshed once every cycle so in
227. nvolved the Programming Device is considered the host computer A timer within the system that ensures that the scan time stays within specified limits When limits are reached either warnings are given or ID Controller opera tion is stopped depending on the particular limit that is reached See watchdog timer A unit of data storage in memory that consists of 16 bits All data areas consists of words Some data areas can be accessed only by words others by either words or bits The location in memory where a word of data is stored A word address must specify sometimes by default the data area and the number of the word that is being addressed A part of memory containing work words bits A bit in a work word A word that can be used for data calculation or other manipulation in program ming i e a work space in memory A large portion of the IR area is always re served for work words Parts of other areas not required for special purposes may also be used as work words A switch used to write protect the contents of a storage device e g a floppy disk If the hole on the upper left of a floppy disk is open the information on this floppy disk cannot be altered A state in which the contents of a storage device can be read but cannot be al tered Numbers 7 segment displays output instruction 91 A advanced I O instructions 7 SEGMENT DISPLAY OUTPUT 91 DIGITAL SWITCH INPUT 89 functions 86 HEXADECIMAL
228. of DM 0100 are transferred to bits 04 through 07 of IR 100 IR 000 Output DM 0100 X HKY execution Je DM 0000 PAM IR 100 93 Using Interrupts Section 5 5 5 5 Using Interrupts This section explains the settings and methods for using the ID Controller s in terrupt functions 5 5 1 Types of Interrupts Interrupt Processing 1 2 3 Pulse Output Instructions and Interrupts 94 The ID Controller has four types of interrupt processing as outlined below ID Communications Response Interrupts Interrupt processing is executed as required to process ID communications Input interrupts Interrupt processing is executed when an input from an external source turns ON one of ID Controller bits 00000 to 00003 Interval timer interrupts Interrupt processing is executed by an interval timer with a precision of 0 1 ms High speed counter interrupts Interrupt processing is executed according to the present value PV of a built in high speed counter All ID Controllers are equipped with a high speed counter which counts pulse inputs to one of ID Controller bits 00004 to 00006 Two phase pulses up to 2 5 kHz can be counted When an interrupt is generated the specified interrupt processing routine is executed Interrupts have the following priority ranking 1 Input interrupt O Input interrupt 1 Input interrupt 2 Input interrupt 3 2 ID communic
229. ogram execu tion peripheral servicing I O refreshing etc The time required to complete one cycle of CPU processing See scheduled interrupt An area in the ID Controller s memory that is designed to hold a specific type of data The highest address available within a data area When designating an operand that requires multiple words it is necessary to ensure that the highest address in the data area is not exceeded In communications the number of bits that is to be treated as one unit in data transmissions A common data area established through a data link The process in which common data areas or common data words are created between two or more ID Controllers A process in which changes in the contents of specific memory locations are re corded during program execution Moving data from one memory location to another either within the same device or between different devices connected via a communications line or network A process by which a draft program is corrected until it operates as intended Debugging includes both the removal of syntax errors as well as the fine tuning of timing and coordination of control operations A number system where numbers are expressed to the base 10 In a ID Control ler all data is ultimately stored in binary form four binary bits are often used to represent one decimal digit via a system called binary coded decimal Decreasing a numeric value usually by 1 A value automat
230. ollowing section provide an introduction to the main operations possible on a Programming Console although there are other operations that can also be used for an ID Controller System Refer to the CQM1 Programmable Controller Operation Manual W226 E1 2A for details on other possible opera tions Graphic key sequences are provided for Programming Console operations Just press the keys in the order they are shown Many of the keys show example data they should be replace with actual data during operation Most key sequences are given assuming that the Programming Console is showing the initial display If the initial display is not on the Programming Con sole when you want to start a new operation just press the CLEAR Key repeat edly until you reach the initial display There are two Programming Consoles that can be used with the ID Controller the CQM1 PROO1 E and the C200H PRO27 E The key functions for these Programming Consoles are identical Press the Shift Key to input a letter shown in the upper left corner of the key or the upper function of a key that has two functions For example the CQM1 PRO01 E s AR HR key can specify either the AR or HR Area press and release the Shift Key and then press the AR HR Key to specify the AR Area C200H PRO27 E CQM1 PROO1 E Use a C200H CN222 2 m A 2 m connecting cable is or C200H CN422 4 m Connecting Cable included
231. ommunications mode d 0 Host link 1 RS 232C 2 One to one link slave 3 One to one link master 4 NT link Link words for one to one link 0 LR 00 to LR 63 1 LR 00 to LR 31 2 LR 00 to LR 16 Port settings 00 Standard communication conditions 01 According to setting in DM 6646 DM 6651 Default Host link using standard parameters Note Settings 2 through 4 of the Communications Mode can be used only for the RS 232C port 5 6 2 Host Link and RS 232C Communications Parameters Select either host link or RS 232C communications and then set the commu nications parameters as described next Match the communications conditions to the settings at the device with which communications are being carried out Standard Communications If the following settings are satisfactory for these communications conditions then set the two rightmost digits to 00 The settings in DM 6646 and DM 6651 will be ignored for this setting Start bits 1 bit Data length 7 bits Stop bits 2 bits Parity Even Baud rate 9 600 bps 111 Communications Section 5 6 Setting Communications Conditions Transmission Delay Time Resetting Ports Bit 15 0 DM 6646 RS 232C port l l DM 6651 Peripheral port Transmission Frame Format See table below Baud rate See table below Default Standard communication conditions Transmission Frame Format Setting Stop bits Data length Stop bits
232. on Ambient Conditions High voltage Equipment Clearance Cooling Fan 16 This section provides precautions for installing the ID Controller Static electricity can damage ID Controller components Your body can carry an electrostatic charge especially when the humidity is low Before touching the ID Controller be sure to first touch a grounded metallic object such as a metal wa ter pipe in order to discharge any static build up Do not install the ID Controller in any of the following locations Doing so will af fect ID Controller life and may affect operating performance e Locations subject to ambient temperatures lower than 0 C or higher than 55 C or 0 C to 45 C when a Programming Console is used e Locations subject to drastic temperature changes or condensation e Locations subject to ambient humidity lower than 10 or higher than 90 e Locations subject to corrosive or flammable gases e Locations subject to excessive dust especially iron dust or chloride e Locations that would subject the ID Controller to direct shock or vibration e Locations that would subject the ID Controller to water oil or chemical re agents e Locations exposed to direct sunlight e Do not install the ID Controller over heaters transformers high capacity resis tors or other devices that generate heat To maintain safe operating conditions locate the ID Controller as far away from high voltage equipment as possible T
233. on is to do A number system where all numbers are expressed to the base 16 In a ID Con troller all data is ultimately stored in binary form however displays and inputs on Programming Devices are often expressed in hexadecimal to simplify opera tion Each group of four binary bits is numerically equivalent to one hexadecimal digit A computer that is used to transfer data to or receive data from a ID Controller in a Host Link system The host computer is used for data management and overall system control Host computers are generally small personal or business com puters An interface that allows communications with a host computer An interface connecting a ID Controller to a host computer to enable monitoring or program control from the host computer A memory area that preserves bit status during power interrupts and used as work bits in programming A bit in memory used to hold I O status Input bits reflect the status of input termi nals output bits hold the status for output terminals The number of inputs and outputs that a ID Controller is able to handle This number ranges from around one hundred for smaller ID Controllers to two thou sand for the largest ones 207 ISS uS O delay I O device I O interrupt I O point O refreshing l O response time 1 O word IBM PC AT or compatible ID Controller Setup increment indirect address initialization error initialize input
234. ons so that they can be reloaded later for use with other instructions A bit in the TR area An operation whereby the program is executed and the resulting data is stored to enable step by step analysis and debugging A memory area used to store the results of trace operations The process of moving data from one location to another within the ID Controller or between the ID Controller and external devices When data is transferred generally a copy of the data is sent to the destination i e the content of the source of the transfer is not changed The distance that a signal can be transmitted A signal used to activate some process e g the execution of a trace operation An address in the program that defines the beginning point for tracing The ac tual beginning point can be altered from the trigger by defining either a positive or negative delay The memory area used to hold the active program i e the program that is being currently executed A bit whose status is effective See masked bit A binary value that is stored in memory without any indication of whether it is positive or negative 215 SS M uploading watchdog timer WDT word word address work area work bit work word write protect switch write protect 216 The process of transferring a program or data from a lower level or slave com puter to a higher level or host computer If a Programming Devices is i
235. ord HEX ASCII TO HEXADECI MAL Converts ASCII data to hexadecimal data APR ARITHMETIC PROCESS Performs sine cosine or linear approximation calculations INT INTERRUPT CONTROL Performs interrupt control such as masking and unmask ing the interrupt bits for I O interrupts SBS SUBROUTINE ENTRY Calls and executes subroutine N SBN SUBROUTINE DEFINE Marks start of subroutine N RET RETURN Marks the end of a subroutine and returns control to main program IORF 1 0 REFRESH Refreshes all I O words between the start and end words MCRO MACRO Expansion Instructions Mnemonic Calls and executes a subroutine replacing I O words The following table shows the instructions that are treated as expansion instruc tions These instructions must be allocated function codes before they can be used in programming Refer to the CQM1 Programing Manual for information on using expansion instructions 7 SEGMENT DISPLAY OUTPUT Function Converts 4 or 8 digit data to 7 segment display format and then outputs the converted data AVERAGE VALUE Adds the specified number of hexadecimal words and computes the mean value Rounds off to 4 digits past the decimal point LINE TO COLUMN Copies the 16 bits from the specified word to a bit col umn of 16 consecutive words COMPARISON TABLE LOAD Compares counter PVs
236. order for it to be read reliably it must be ON for at least one cycle 105 Using Interrupts Section 5 5 Wiring ID Controller Setup 106 2 The comparison table comparison execution status and range comparison results data will be preserved when the counter is reset allowing execution to continue from the same condition as before being reset The Z in Z phase is an abbreviation for Zero It is a signal that shows that the encoder has completed one cycle High speed Counter Interrupt Count For high speed counter interrupts a comparison table is used instead of a count up The count check can be carried out by either of the two methods de scribed below In the comparison table comparison conditions for comparing to the PV and interrupt routine combinations are saved Target value A maximum of 16 comparison conditions target values and count directions and interrupt routine combinations are saved in the comparison table When the counter PV and the count direction match the comparison conditions then the specified inter rupt routine is executed Range comparison Eight comparison conditions upper and lower lim its and interrupt routine combinations are saved in the comparison table When the PV is greater than or equal to the lower limit and less than or equal to the upper limit then the specified interrupt routine is executed Depending on the count mode the input signals from the pulse en
237. ordoooo o ojojojo ojojojojojojJo ojojojo IRwrdoi ojJojojo o ojojo oj ojojo o ojoJ o Data in the DM Area as well as Timer and Counter PVs can be accessed as words only Timer and Counter Completion Flags can be accessed as bits only You cannot designate any of these for operands requiring bit data Data in the IR AR SR HR LR and other areas is accessible either by word or by bit depending on the instruction in which the data is being used To designate one of these areas by word all that is necessary is the acro nym if required and the two three or four digit word address To desig nate an area by bit the word address is combined with the bit number as a single four to six digit address The following table shows examples of this The two rightmost digits of a bit address must be between 00 and 15 The same timer and counter numbers can be used to designate either the present value PV of the timer or counter or the Completion Flag for the tim er or counter Word designation Bit designation 000 00015 leftmost bit in word IR 000 252 25200 rightmost bit in word SR 252 DM 1250 Not possible TIM 215 designates PV TIM 215 designates Completion Flag AR 12 AR 1200 Data Structure Word data input as decimal values is stored in binary coded decimal BCD word data entered as hexadecimal is stored in binary form Each four bits of a word represents one digit either a hexadecimal or decimal digit num
238. ords BCD DIVIDE Divides four digit BCD dividend by four digit BCD divisor and outputs result to specified result words LOGICAL AND Logically ANDs two 16 bit input words and sets corre sponding bit in result word if corresponding bits in input words are both ON LOGICAL OR Logically ORs two 16 bit input words and sets correspond ing bit in result word if one or both of corresponding bits in input data are ON EXCLUSIVE OR Exclusively ORs two 16 bit input words and sets bit in re sult word when corresponding bits in input words differ in status EXCLUSIVE NOR Exclusively NORs two 16 bit input words and sets bit in result word when corresponding bits in input words are same in status BCD INCREMENT Increments four digit BCD word by one BCD DECREMENT Decrements four digit BCD word by one SET CARRY Sets carry flag i e turns CY ON CLEAR CARRY Clears carry flag i e turns CY OFF MESSAGE Displays a 16 character message on the Programming Console display RECEIVE Receives data via a communications port 123 Instruction Set Mnemonic Q TXD TRANSMIT Section 6 1 Function Sends data via a communications port ADB BINARY ADD Adds two four digit hexadecimal values and content of CY and outputs result to specified result word SBB BINARY SUBTRACT Subtracts a four digit hexadecimal value and CY from anot
239. ort Transmit Ready Flag or AR 0813 Peripheral Port Transmit Ready Flag has turned ON 2 Use the TXD instruction to transmit the data TXD S Leading word no of data to be transmitted C Control data Bits 00 to 03 0 Leftmost bytes first Nj 1 Rightmost bytes first Bits 12 to 15 0 RS 232C port 1 Peripheral port N Number of bytes to be transmitted 4 digits BCD 0000 to 0256 From the time this instruction is executed until the data transmission is complete AR 0805 or ARO813 for the peripheral port will remain OFF It will turn ON again upon completion of the data transmission 115 Communications Section 5 6 Start and end codes are not included when the number of bytes to be transmitted is specified The largest transmission that can be sent with or without start and end codes in 256 bytes N will be between 254 and 256 depending on the desig nations for start and end codes If the number of bytes to be sent is set to 0000 only the start and end codes will be sent 256 bytes max Start code Data End code To reset the RS 232C port i e to restore the initial status turn on SR 25209 To reset the peripheral port turn on SR 25208 These bits will turn OFF automati cally after the reset Receptions 1 2 3 1 Confirm that AR 0806 RS 232C Reception Complete Flag or AR 0814 Pe ripheral Reception Complete Flag is ON 2 Use the RXD instruction to receiv
240. ot be used for S or N N must be BCD from 0000 to 0256 0000 to 0061 in host link mode 152 Selected Special Instructions Section 6 5 Flags ER A device is not connected to the peripheral port There is an error in the communications settings ID Controller Setup or the operand settings Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded The source words S to S N 2 1 exceed the data area AR 08 AR 0805 will be turned ON when it is possible to transmit through the RS 232C port AR 0813 will be turned ON when it is possible to transmit through the peripheral port 153 SECTION 7 Programming Examples This section provides four programming examples using ID communications instructions T l Recording Data ibo a a e Dawe aed 156 7 2 Displaying Worker Instructions 0 0 eee eee eens 157 7 3 Managing Production Histories 0 0c eee eens 158 7 4 Controlling Workpiece Flow 0 0 00 ce cee eee 159 155 Recording Data Section 7 1 7 1 Recording Data The ID Controller can be used to record data in Data Carriers Workers can record data in the Data Carrier with a few simple operations from a Program mable Terminal PT while confirming data details on a PT s screen Data input Worker Workpieces Data Carrier Process When a worker inputs the ID number destination code of an articl
241. other instruc tions Execution Conditions time us minimum times first maximum last Constants for first two operands word for third Words for all three operands gt KDM for all three operands 165 Execution Times for ID Communications Section 8 3 Execution Conditions time us minimum times first maximum last Mnemonic 62 IDWT 135 75 Constants for first two operands word for third Writing one byte normal order 146 75 Words for all three operands Writing one byte normal order 149 75 Words for all three operands Writing one byte reversing order 213 75 gt KDM for all three operands Writing one byte normal order 146 75 Constants for first two operands word for third Writing ten bytes normal order 157 75 Words for all three operands Writing ten bytes normal order 160 75 Words for all three operands Writing ten bytes reversing order 224 75 gt KDM for all three operands Writing ten bytes normal order 433 75 Constants for first two operands word for third Writing 256 bytes normal order 457 75 Words for all three operands Writing 256 bytes normal order 534 75 Words for all three operands Writing 256 bytes reversing order 530 75 gt KDM for all three operands Writing 256 bytes normal order 63 IDAR 131 75 Constants for first two operands word for
242. owing procedure to install an ID Controller on DIN Track 1 2 3 1 Mount the DIN Track securely to the control board or inside the control panel using screws in at least 3 separate locations 2 Release the pins on the backs of the ID Controller These pins lock the ID Controller to the DIN Track DIN track mounting pin Installing the ID Controller Section 2 3 3 Fit the back of the ID Controller onto the DIN Track by inserting the top of the track and then pressing in at the bottom of the ID Controller as shown below 4 DIN track mounting pin 5 Install a DIN Track Bracket on each side of the ID Controller To install a bracket hook the bottom of the Bracket on the bottom of the track rotate the Bracket to hook the top of the Bracket on the top of the track and then tight en the screw to lock the Bracket in place 29 Installing the ID Controller Section2 3 2 3 2 Wiring the Power Supply The following diagram shows the proper connection to an AC power supply The AC voltage should be between 100 and 240 VAC with an allowable range of 85 to 264 VAC The cross sectional area of each wire must be 2 mm min Insulating transformer Breaker C s b AC power supply EN i A An insulating transformer greatly Twist the wires reduces the noise that may be induced between the power line and ground Do not ground the secondary side of the insulating transformer N Caution Be sure that th
243. pecified digit s in D Up to four digits can be transferred at one time The first digit to be copied the number of digits to be copied and the first digit to re ceive the copy are designated in Di as shown below Digits from S will be copied to consecutive digits in D starting from the designated first digit and continued for the designated number of digits If the last digit is reached in either S or D further digits are used starting back at digit O Digit number 3210 First digit in S 0 to 3 Number of digits 0 to 3 0 1 digit 1 2 digits 2 3 digits 3 4 digits First digit in D O to 3 Not Set to zero 147 Selected Special Instructions Section 6 5 Digit Designator The following show examples of the data movements for various values of Di Di 0010 Di 0030 S EU S KA Precautions The rightmost three digits of Di must each be between 0 and 3 DM 6144 to DM 6655 cannot be used for Di or D Flags ER At least one of the rightmost three digits of Di is not between 0 and 3 Indirectly addressed DM word is non existent Content of x DM word is not BCD or the DM area boundary has been exceeded Example In the following example MOVD 83 copies the contents of digit 1 bits 04 to 07 of DM 0000 to digit 2 bits 08 to 11 of DM 0003 when IR 00000 is ON 00000 Address Instruction Operands gt 2 MOVD 83 0201 DM 0003 DM 0000 0201 DM 0003 MSB LSB
244. porarily made ineffective Covering an interrupt signal so that the interrupt is not effective until the mask is removed A unit of storage equal to one million bytes Any of the areas in the ID Controller used to hold data or programs A number assigned to a message generated with the MESSAGE instruction A form of a ladder diagram program that consists of a sequential list of the in structions without using a ladder diagram A mode of ID Controller operation in which normal program execution is possi ble and which allows modification of data held in memory Used for monitoring or debugging the ID Controller See leftmost bit wora An input that is normally closed i e the input signal is considered to be present when the circuit connected to the input opens A delay set for a data trace in which recording data begins before the trace signal by a specified amount Programming one loop within another loop programming a call to a subroutine within another subroutine or programming one jump within another An input that is normally open i e the input signal is considered to be present when the circuit connected to the input closes Disturbances in signals caused by electrical noise A hardware or software error that produces a warning but does not stop the ID Controller from operating See normally open condition A condition that produces an ON execution condition when the bit assigned to it is OFF and an OFF ex
245. pts Pulse signals from a pulse encoder to ID Controller bits 00004 through 00006 can be counted at high speed and interrupt processing can be executed accord ing to the count Note Refer to the CQM1 Programming Manual for further details on instructions Processing Input Signal Types and Count Modes Two types of signals can be input from a pulse encoder The count mode used for the high speed counter will depend on the signal type Up Down Mode A phase difference 4X two phase signal A phase and B phase and a Z phase signal are used for inputs The count is incremented or decremented according to differ ences in the 2 phase signals 104 Using Interrupts Section 5 5 Incrementing mode One single phase pulse signal and a count reset signal are used for inputs The count is incremented according to the single phase signal Incrementing Mode Up Down Mode o A e Bee M oe A D oe Tarte ey T m t Count 123456787654321 0 1 2 Count 1 2 3 A Incremented Decremented Incremented only Note 1 The count will go to OFFFFFFF for overflows and FFFFFFFF for underflows and counting and comparisons will stop although comparison table data will remain 2 One of the methods in the following section should always be used to reset the counter when restarting it The counter will be automatically reset when program execution is started or stopped The following signal transitions are handled as forward increme
246. r DC AUTOREAD Waits for approach of a Data Carrier and then reads data IDAW DC AUTOWRITE Waits for approach of a Data Carrier and then writes data IDAR IDCA DC CLEAR Initializes memory in the Data Carrier with the specified data IDMD DC MANAGE DATA Checks memory in the Data Carrier Also manages the write life of Data Carriers BCNT BIT COUNTER Counts the total number of bits that are ON in the specified block of words BCMP BLOCK COMPARE Judges whether the value of a word is within 16 ranges defined by lower and upper limits STIM INTERVAL TIMER Controls interval timers used to perform scheduled inter rupts XFER BLOCK TRANSFER Moves content of several consecutive source words to consecutive destination words BSET BLOCK SET Copies content of one word or constant to several consec utive words ROOT SQUARE ROOT Computes square root of eight digit BCD value and out puts truncated four digit integer result to specified result word XCHG DATA EXCHANGE Exchanges contents of two different words SLD ONE DIGIT SHIFT LEFT Left shifts data between starting and ending words by one digit four bits SRD ONE DIGIT SHIFT RIGHT Right shifts data between starting and ending words by one digit four bits MLPX 4 TO 16 DECODER Converts up to four hexa
247. r an interrupt whose set value is 000A will be re corded as 0009 immediately after INT is executed Even if input interrupts are not used in Counter Mode these SR bits cannot be used as work bits In this example input interrupt O is used in Input Interrupt Mode and input inter rupt 1 is used in Counter Mode Before executing the program check to be sure the ID Controller Setup 99 Using Interrupts Section 5 5 ID Controller Setup DM 6628 0011 IR 00000 and IR 00001 used for input inter rupts The default settings are used for all other ID Controller Setup parameters Inputs are not refreshed at the time of interrupt processing 25315 ON for 1 scan Sets 10 as the counter mode SV for input interrupt 1 When IR 00100 turns ON Masked interrupts for input interrupts O and 1 are cleared Interrupts are enabled in input interrupt mode for interrupt O Interrupts are enabled in counter mode for interrupt 1 SV 10 The contents of SR 249 PV 1 are converted to BCD and stored in DM 0000 The content to DM 0000 is incremented to the ID Controller When IR 00100 turns OFF input interrupts O and 1 are masked and interrupts are prohibited 25313 Always ON When the Input interrupt is executed for interrupt O sub routine 000 is called and the counter mode is refreshed with the SV for input interrupt 1 with 10 added SV 20 When the count is reached for the input interrupt 1 counter
248. r approach of a Data Carrier and then writes data DC CLEAR Initializes memory in the Data Carrier with the specified data DC MANAGE DATA Checks memory in the Data Carrier Also manages the write life of Data Carriers There are two types of ID communications instructions those executed normal ly and those executed automatically These instructions differ in the processing execute start timing for the Data Carrier Automatic Execution IDAR 63 and IDAW 64 After the instruction is executed the ID Controller will remain in standby until a Data Carrier is within the communications range of the Read Write Head and then processing will be carried out Execute the instruction before the Data Car rier approaches The instruction can be interrupted by turn on the AUTOREAD WRITE Cancel Flag SR 23200 when the ID Controller is in the standby mode waiting for a Data Carrier to approach Standby time can also be set using the Data Carrier Stand by Time settings DM 6643 If a Data Carrier does not approach within the set amount of time a DC missing error SR 23308 will be generated Ladder diagram execution ID processing Y Confirm presence Y Execute instruction 1 4 No Data Carrier Process instruction Process response Y 1 Confirm response pm eee Automatic execution can be used in systems without synchronized sensors wh
249. rd s or address es will not be overwrit ten if IDAR 63 or IDAW 64 processing is cancelled 5 3 10 Clearing Data Carriers IDCA 65 The DC CLEAR IDCA 65 instruction initializes the memory D first address of the Data Carrier with designated data S word or constant All data in desig nated user areas will be initialized whether the area is write protected or not Using the Instruction Q IDCA 65 D First destination address in DC 4 digit HEX C Control data number of bytes 0000 end of memory S Source word in ID Controller or constant Refer to page 137 for further details on control data Example The following example shows how to initialize all Data Carrier data with 00 If SR 23300 ID Ready Flag is ON when input IR 00100 turns ON all addresses i e from 0000 to the last address except the production month year will be cleared to 00 82 ID Communications Section533 SR 23301 ID Completed Flag will turn ON when execution of IDCA 65 has been completed and this will signal either a normal or error end depending on the status of SR 23302 ID Communications Error Flag 00100 23300 23301 Normal end 23302 Error end If execution ends normally all addresses except the production month year of the Data Carrier will be cleared to 00 5 3 11 Checking Data Carriers IDMD 66 The DC MANAGE DATA IDMD 66 instruction has two main functions It can be used to ad
250. re 133 ID Communications Instructions Section 6 3 In diagram B the differentiated MOV 21 will move the content of HR 10 to DM 0000 only once after 00000 goes ON Even if 00000 remains ON for 2 0 seconds with the same 80 ms cycle time the move operation will be executed only once during the first cycle in which 00000 has changed from OFF to ON Because the content of HR 10 could very well change during the 2 seconds while 00000 is ON the final content of DM 0000 after the 2 seconds could be different depend ing on whether MOV 21 or MOV 21 was used All operands ladder diagram symbols and other specifications for instructions are the same regardless of whether the differentiated or non differentiated form of an instruction is used When inputting the same function codes are also used but NOT is input after the function code to designate the differentiated form of an instruction Most but not all instructions have differentiated forms 6 3 ID Communications Instructions 6 3 1 DC READ and DC AUTOREAD IDRD 61 IDAR 63 DC READ DC AUTOREAD Description 134 Operand Data Areas Ladder Symbols S First source address HEX IR SR AR DM HR TC LR IDRD 61 IDRD 61 C Control data IR SR AR DM HR TC LR D First destination word IR SR AR DM HR LR Operand Data Areas Ladder Symbols S First source address HEX IR SR AR DM HR TC LR IDAR 63 IDAR 63 C Control data S A A
251. re only first 30 records no shifting 2 to F Do not store records 08to 11 Cycle time monitor enable 0 Detect long cycles as non fatal errors default 1 Do not detect long cycles 12to 15 Low battery error enable 0 Detect low battery voltage as non fatal error default 1 Do not detect low batter voltage Default Values The default values for the ID Controller Setup are 0000 for all words The default values can be reset at any time by turning ON SR 25210 N Caution When data memory DM is cleared from a Programming Device the ID Control ler Setup settings will also be cleared to all zeros Changing the Setup Changes in ID Controller Setup settings are effective and will affect ID Controller operation at various times depending on the setting as described below DM 6600 to DM 6614 Effective when ID Controller power supply is turned on DM 6615 to DM 6644 Effective when program execution begins DM 6645 to DM 6655 Effective any time that ID Controller power is on DM 6611 and DM 6643 are read once when power is turned on and once when program execution begins Note Changes in the ID Controller Setup are effective only at the times given above Be sure to take the proper measures to make changes effective before continu ing operation Although the ID Controller Setup is stored in DM 6600 to DM 6655 settings can be made and changed only from a Programming Device e g LSS SSS or Pro gramming Co
252. reas that can be used in troubleshooting Errors can also occur in ID functions and Host Link functions ID errors can be troubleshot through the ID indicators on the ID Controller or through ID Control ler flags in memory ID errors are described later in this sections Refer to the CQM 1 Programming Manual for details on Host Link errors Programming Errors O Section9 3 9 2 Programming Console Operation Errors The following error messages may appear when performing operations on the Programming Console Correct the error as indicated and continue with the op eration The asterisks in the displays shown below will be replaced with numeric data normally an address in the actual display Refer to the operation manual for your programming device or software for errors that may appear for it Message Meaning and appropriate response REPL ROM An attempt was made to write to write protected memory Set the write protect switch pin 1 of the ID Controller s DIP switch to OFF PROG OVER The instruction at the last address in memory is not NOP 00 Erase all unnecessary instructions at the end of the program ADDR OVER An address was set that is larger than the highest memory address in Program Memory Input a smaller address SETDATA FALS 00 has been input and 00 cannot be input Reinput the ERR data l O NO ERR A data area address has been designated that exceeds the limit of the data area e g an address is too
253. rite Head and the Data Carriers that are used Refer to you Read Write Head and Data Carrier manuals for details Distance of travel within communications range d gt Data Carrier Communications LI Read Write Head The communications time depends on the type of Data Carrier used SRAM or EEPROM The communications time for EEPROM Data Carriers depends on the setting of the ID communications mode in bits 00 through 03 of DM 6611 communications distance or communications speed given preference The following examples show the time required for communications between Read Write Head and a Data Carrier when specific ID communications instructions are used SRAM Data Carriers Reference 1 000 800 600 400 200 IDRD 61 Communications time ms 0 50 100 150 200 250 Number of bytes N Instruction ID communications time ms IDAR 63 T 1 8 x N 484 IDAW 64 T 4 2 x N 86 5 Execution Times for ID Communications Section 8 3 EEPROM Data Carriers Priority to Communications Distance Reference IDWT 62 or IDAW 64 E 2 000 1 500 1 000 500 IDAR 63 or IDRD 61 Communications time ms 100 200 300 Number of bytes N Instruction ID communications time ms IDAR 63 T 4 8 x N 64 6 IDAW 64 T 8 7 x N 167 1 EEPROM Dat
254. rops and to set the method for storing records in the error log when errors occur Bit 15 0 DM6655 Low battery voltage detection 0 Detect 1 Don t detect Cycle time over detection 0 Detect 1 Don t detect ID Error log storage method 0 Error records for 30 most recent errors always stored older errors deleted 1 Only first 30 error records stored no errors stored be yond that point 2 to F Error records not stored Error log storage method 0 Error records for 10 most recent errors always stored older errors deleted 1 Only first 10 error records stored no errors stored beyond that point 2 to F Error records not stored Default Low battery voltage and cycle time over errors detected and error records stored for the 10 most recent errors Battery errors and cycle time overrun errors are non fatal errors For details on the normal error log refer to the CQM1 Programming Manual For details on the ID error log refer to 9 8 D Error Logs ID Error Log Storage Method The ID error log storage method is set in the ID Controller Setup DM 6655 Set 72 1 2 3 any of the following methods 1 You can store the most recent 30 ID error log records and discard older re cords This is achieved by shifting the records as shown below so that the oldest record record 1 is lost whenever a new record is generated Lost A Error log record 1 Error log record 2
255. rrect the cause and clear the error An error has occurred during data transmission between the ID Controller and Memory Cassette Check the status of flags AR 1412 to AR 1415 and correct as directed AR 1412 ON Switch to PROGRAM Mode clear the error and transfer again AR 1413 ON The transfer destination is write protected If the ID Controller is the destination turn off the power to the ID Controller be sure that pin 1 of the ID Controller s DIP switch is OFF clear the error and transfer again If an EEPROM Memory Cassette is the destination check whether the power supply is on clear the error and transfer again If an EPROM Memory Cassette is the destination change to a writeable Memory Cassette you cannot write to EPROM Memory Cassettes AR 1414 ON The destination has insufficient capacity Check the source s program size in AR 15 and consider using a different Memory Cassette AR 1415 ON There is no program in the Memory Cassette or the program contains errors Check the Memory Cassette An error has occurred in ID functions and SR 25415 will be ON Refer to page 177 and troubleshoot via the ID indicators 175 Operating Errors Message SYS FAIL FAL Section 9 5 Meaning and appropriate response An error has been detected in the ID Controller Setup Check flags AR 2400 to AR 2402 and correct as directed AR 2400 ON An incorrect setting was detected in the ID Controller Setup DM 66
256. rror Log Clear Bit 11 ID Error Statistics Log Clear Bit ON Error log cleared RUN or PROGRAM mode only Will automatically turn back OFF 12 to 15 Reserved Do not use SR 233 00 Read only ID Ready Flag Turns ON when ID communications instruction is issued turns OFF as soon as instruction is executed and turns back ON when communications are completed ID Completed Flag Turns ON as soon as processing for communications with Data Carrier via ID communications instruction has been completed ID Communications Error Flag Turns ON when an error occurs in communications ON when any flag between SR 23308 and SR 23313 is ON Turns OFF when error is cleared and ID communications instruction is executed 03 to 05 Reserved Do not use 06 DC Battery Warning Flag Turns ON when the voltage of the battery built into the Data Carrier is low indicating the battery has passed its service life 07 ID Check Warning Flag Turns ON when an error is detected for the IDMD 66 ID CHECK instruction 08 DC Missing Error Flag 09 Write Protected Error Flag 10 DC Communications Error Flag 11 Address Error Flag 12 Verification Error Flag 13 No Head Error Flag Turn ON when corresponding error is detected Turn OFF when SR 23201 Flag Reset Bit turns ON Turn OFF when ID communications instruction is executed 14 15 Reserved
257. s Orange communicating with another device via the RS 232C port OUT INH Output inhibited indicator Lights when the Output OFF Bit Orange SR 25215 is turned ON All ID Controller outputs will be turned OFF 0 1 2 Input status indicators Indicate the ON and OFF status of input bits in IR 000 0 1 2 Output status indicators Indicate the ON and OFF status of output bits in IR 100 ID Function Indicators RDY Operation Ready Lit when ID functions are possible Green ERR Red Error Alarm Lit when there is an error in the ID Controller Setup or when operation stops during communications Flashes when there is an error in ID communications ID Communications Lit when communications are taking place with the Read Write Head 11 Component Names and Functions Section 2 1 2 1 3 ID Controller Operating Modes ID Controllers have three operating modes PROGRAM MONITOR and RUN The ID Controller mode can be changed from the mode selector on the Program ming Console Mode selector MONITOR PROGRAM The key cannot be removed when the mode selector is set to PROGRAM Note Some Programming Devices e g the Programming Console will clear the cur RUN Mode MONITOR Mode PROGRAM Mode Mode Changes 1 2 3 12 rent display and display the new operating mode when the mode selector is changed You can change the mode without
258. s S first word of the ID Controller and then writes the data to memory D first address designated in the Data Car rier IDAW 64 places execution of the write operation on standby until a Data Carrier is detected It then reads data from the ID Controller and writes the data to memory in the Data Carrier Control Data Set the control data C as shown in the following table Functions Values Number of bytes 001 to 256 in BCD addresses to write None Set to 0 Write data order in ID 0 Leftmost byte first Controller 1 Rightmost byte first None Set to 0 None Set to 0 Precautions The addresses that can be specified for the first destination word D depend on the Data Carrier that is being used Refer to your Data Carrier manual for details The content of the control data C must be within the specified ranges see above table Data cannot be written to areas that are write protected Any attempt to do so will generate a write protected error 136 ID Communications Instructions Section 6 3 Flags Example ER The number of bytes to write bits 00 to 11 in control data is not BCD or is out of range Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded SR 23200 ID Ready Flag was OFF or another ID communications instruction was being executed 23300 OFF while instruction is being executed ON when
259. s System Setup necessary for the ID Control ler Perform these operations before using the SSS for the ID Controller Be sure to set the correct PC model ID Controller before using the SSS All SSS data will be cleared if the PC model specified in the SSS System Setup is changed from one PC group to another Even if the PC model is changed within the same group the I O comment I O table time chart data data trace data and step trace data are deleted Set the PC model to the COM1 when using the SSS for the ID Controller Press the K Key on the System Setup Menu to specify the PC model setting and then press the H Key to specify the CQM1 The SSS treats the ID Controller as a CQM1 PC The expansion instructions for the ID Controller are already registered in the SSS It is thus not necessary to transfer the expansion instructions when using the SSS just be sure to transfer the instructions table When transferring the program from the ID Controller to the computer running the SSS specify E SEND TO END This will ensure that the expansion instruc tions table will transferred to the computer after transfer of the program has been completed 53 SECTION 4 Data Areas This section describes the structure and use of the data areas used by the ID Controller 4 1 4 2 43 Data Area Structure Data Area Functions ID Controller Area 4 3 ID Flags Timing 4 3 2 Autoread Write Flags 56 57 60 61
260. s flag will be turned ON when the service life of the battery is at an end and will be OFF if the battery is still normal The service life of Data Carrier battery is checked by running a fixed current momentarily through the internal circuits of the Data Carrier The battery thus will be quickly consumed if a service life check of the batteries is executed every time a Data Carrier is accessed We recommend a routine check once a day in the system program In a service life check on the battery of a Data Carrier that has been sitting around unused for several months the DC battery service life warning may be ON even if the battery is still serviceable Therefore execute a read operation for 10 minutes to activate the batteries before conducting a check on Data Carriers that have been sitting around for an extended amount of time The DC MANAGE DATA IDMD 66 instruction can be used to determine whether the EEPROM overwrite count has been exceeded When the IDMD 66 instruction is executed the results are reflected in the sta tus of SR 23307 ID Check Warning Flag 77 ID Communications Section533 5 3 6 ID Communications Instructions The ID communication instructions are shown in the following table Mnemonic Function DC READ Reads data from memory in the Data Carrier DC WRITE Writes data to memory in the Data Carrier DC AUTOREAD Waits for approach of a Data Carrier and then reads data DC AUTOWRITE Waits fo
261. sage on the Programming Console The mes sage which can be up to 16 characters long is displayed when the instruction s execution condition is ON FAL 06 is an instruction that causes a non fatal error The following will occur when an FAL 06 instruction is executed 1 The ERR ALM indicator on the ID Controller will flash ID Controller opera tion will continue 2 The instruction s 2 digit BCD FAL number 01 to 99 will be written to SR 25300 to SR 25307 3 The FAL number and time of occurrence will be recorded in the ID Control ler s error log area if a Memory Cassette with a clock RTC is used The FAL numbers can be set arbitrarily to indicate particular conditions The same number cannot be used as both an FAL number and an FALS number To clear an FAL error correct the cause of the error execute FAL 00 and then clear the error using the Programming Console FALS 07 is an instruction that causes a fatal error The following will occur when an FALS 07 instruction is executed 1 Program execution will be stopped and outputs will be turned OFF Operating Error Section 9 5 2 The ERR ALM indicator on the ID Controller will be lit 3 The instruction s 2 digit BCD FALS number 01 to 99 will be written to SR 25300 to SR 25307 4 The FALS number and time of occurrence will be recorded in the ID Control ler s error log area if a Memory Cassette with a clock RTC is used The FALS numbers can be set arbitrar
262. se settings when you want to adjust the time until inputs stabilize Input Time Constants for IR 000 Bit 15 0 DM6620 Eg Not used Time constant for IR 00008 to IR 00015 1 digit BCD see below Time constant for IR 00000 to IR 00007 1 digit BCD see below Default 8 ms for each The nine possible settings for the input time constant are shown below 0 8 ms 1 1 ms 2 2ms 3 4 ms 4 8 ms 5 16 ms 6 32 ms 7 64 ms 8 128 ms Make the settings shown below to set the number of high speed timers created with TIMH 15 that will use interrupt processing Bit 15 0 DM6629 E Ea High speed timer interrupt setting enable 00 Setting disabled Interrupt processing for all high speed timers TIM 000 to TIM 015 01 Enabled Use setting in bits OO to 07 Number of high speed timer for interrupts valid when bits 08 to 15 are 01 00 to 15 2 digits BCD Default Interrupt processing for all high speed timers TIM 000 to TIM 015 The setting indicates the number of timers that will use interrupt processing be ginning with TIM 000 For example if 0108 is specified then eight timers TIM 000 to TIM 007 will use interrupt processing High speed timers will not be accurate without interrupt processing unless the cycle time is 10 ms or less Basic Operations and I O Processes Section 5 2 DSW Input Digits and Output Refresh Method DM 6639 Error Log Settings I
263. second one to unmask interrupts INT cannot be used to mask and unmask all interrupts from within interrupt routines Use the INT instruction to disable all interrupts If an interrupt is generated while interrupts are masked interrupt processing will not be executed but the interrupt will be recorded for the input interval timer and high speed counter interrupts The interrupts will then be serviced as soon as interrupts are unmasked Use the INT instruction to unmask interrupts as follows 5 5 5 Interval Timer Interrupts Note High speed high precision timer interrupt processing can be executed using in terval timers The ID Controller provides three interval timers numbered from O to 2 1 Interval timer 0 cannot be used when pulses are being output by means of the SPED instruction 2 Interval timer 2 cannot be used at the same time as the high speed counter 101 Using Interrupts Section 5 5 Processing ID Controller Setup Operation 102 There are two modes for interval timer operation the One shot Mode in which only one interrupt will be executed when time expires and the Scheduled Inter rupt Mode in which the interrupt is repeated at a fixed interval When using interval timer interrupts make the following settings in the ID Con troller Setup in PROGRAM mode before executing the program Input Refresh Word Settings DM 6636 to DM 6638 Make these settings when it is nec
264. sed instead of the TIM Key 7 Input the third instruction and its operands First input the instruction by pressing the FUN Key and then the function code 21 in this case Note To input a differentiated instruction press the NOT Key after entering the function code The symbol will be displayed next to differen tiated instructions Press the NOT Key again to change back the instruction back to a non differentiated instruction The O symbol will disappear To change an instruction after it has been entered simply scroll through the program until the desired instruction is dis played and press the NOT Key The O symbol should be displayed next to the instruction 8 Press the WRITE Key to write the instruction to Program Memory The input display for the first operand will be displayed WRITE e Writing Hexadecimal BCD Constants 9 Input the first operand and press the WRITE Key to write the instruction to Program Memory The input display for the second operand will appear B A A os ps e Writing Word Addresses 10 Input the second operand and press the WRITE Key to write the instruction to Program Memory The next program address will be displayed B A LR 1 0 WRITE Note When an instruction operand is input the designation the operand as a bit or word can be abbreviated 11 Write the application instruction F A FUN 5 0 WRITE
265. ses resulting from executing ID communications instructions can be processed using interrupts The following example shows how to program interrupts to process data after reading and writing to a Data Carrier If SR 23300 ID Ready Flag is ON when input IR 00000 turns ON the IDWT 62 instruction reads two bytes of data starting from DM 0000 and writes it to the Data Carrier starting from address 0010 If SR 23300 ID Ready Flag is ON when input IR 00001 turns ON two bytes of data are read starting from address 0010 to and written starting at DM 1000 When the read operation for IDRD 61 has been completed subroutine 004 be tween SBN 004 and the first RET will be executed 85 Advanced I O Instructions Section 5 4 When the write operation for IDWT 62 has been completed subroutine 005 between SBN 005 and the last RET will be executed 00000 23300 IDWT 62 0010 0002 DM 0000 00001 23300 004 SBN 92 MOV 21 0000 RET 93 25313 005 SBN 92 MOV 21 FFFF RET 93 25313 END 01 5 4 Advanced I O Instructions Advanced I O instructions enable control with a single instruction of complex operations involving external I O devices digital switches 7 segment displays etc This section introduces advanced I O instructions Refer to the CQM1 Op eration Programming Manual for further details There are four advanced l O instructions as sho
266. sible in MONITOR or PROGRAM mode only RUN MONITOR PROGRAM mo OK ox Words SR 253 to SR 255 cannot be changed 1 Monitor the status of the desired word according to the procedure described in 3 3 12 Bit Digit Word Monitor If two or more words are being monitored the desired word should be leftmost on the display 2 Press the CHG Key to begin hexadecimal BCD data modification If a timer or counter is leftmost on the display its PV will be displayed and will be the value changed In MONITOR mode the timer s PV will be counting down if the timer is on 3 Input the new PV and press the WRITE Key to change the PV Be sure to input timer or counter PVs in BCD only The operation will end and the normal monitoring display will return when the WRITE Key is pressed 2 0 o warre The timer s PV will continue counting down from the new PV if the timer is on 3 3 19 Binary Data Modification 1 2 3 This operation is used to change the status of a word s bits when the word is monitored using the procedure described in 3 3 17 Binary Monitor It is pos sible in MONITOR or PROGRAM mode only RUN MONITOR PROGRAM Ne ox OK gt Bits SR 25300 to SR 25507 cannot be changed 1 Monitor the status of the desired word according to the procedure described 3 3 17 Binary Monitor 2 Press the CHG Key to begin binary data modification A flashing cursor will app
267. t O unless it was refreshed in this case the Always ON Flag SR 25313 could be used in place of IR 00000 Use the following instructions to program input interrupts using the Input Inter rupt Mode Masking of Interrupts With the INT instruction set or clear input interrupt masks as required O INT Make the settings with the D bits O to 3 which correspond to input interrupts O to 3 eT 0 Mask cleared Input interrupt permitted o 1 Mask set Input interrupt not permitted At the beginning of operation all of the input interrupts are masked and must be unmasked cleared to be used Clearing Masked Interrupts If the bit corresponding to an input interrupt turns ON while masked that input interrupt will be saved in memory and will be executed as soon as the mask is cleared In order for that input interrupt not to be executed when the mask is cleared the interrupt must be cleared from memory 97 Using Interrupts Section 5 5 Only one interrupt signal will be saved in memory for each interrupt number With the INT instruction clear the input interrupt from memory If D bits O to 3 which correspond to input interrupts O to 3 are set to 1 then the input interrupts will be cleared from memory 0 Input interrupt retained 1 Input interrupt cleared Reading Mask Status With the INT instruction read the input interrupt mask status The status of the rightmost digit of the data stored in word
268. ta Carrier battery has been detected 23308 to 23313 Indicate error type with 23302 is ON Example Refer to page 82 for an example 6 3 4 DC MANAGE DATA IDMD 66 Operand Data Areas Ladder Symbols S First management word HEX IR SR AR DM HR TC LR C4 Control data 1 rat essc C2 Control data 2 Description IDMD 66 adds a check code to data in the Data Carrier to detect data errors It also counts the number of times that data was written to the Data Carrier in order to manage the writing service life 138 ID Communications Instructions Section 6 3 Control Data 1 Control Data 2 Precautions Flags Examples Set control data 1 C4 as shown in the following table Functions Values Management mode Increment write count management 100 000 writes Decrement write count management Check code calculation 3 Check code verification Set to 0 Set control data 2 C2 as shown in the following table Bis Function Write count Increment decrement count management 000 to 255 BCD Check code Number of bytes in management area calculation verification 003 to 256 BCD The addresses that can be specified for the first management word S depend on the Data Carrier that is being used Refer to your Data Carrier manual for de tails The content of the Control data C4 and C2 must be within the specified ranges see above tables ER 23300 23301
269. tch is ON when changing function codes 41 Programming Console Operations Section 3 3 Reading Function Codes Follow the procedure below to read out function code assignments 1 2 3 1 Bring up the initial display 2 Press the EXT Key EXT 3 Use the Up and Down Cursor Keys to scroll through the function codes and read their corresponding instructions Changing Function Codes Follow the procedure below to change function code assignments The assign ments can be changed in PROGRAM mode only 1 2 3 1 Follow the procedure above to read out the function code which will be changed 2 Press the CHG Key The followi ATUS 3 Use the Up and Down Cursor Keys to scroll through the available instruc tions 4 When the desired instruction is displayed press the WRITE Key to change the function code assignment The following display will appear if the se lected instruction has not been assigned to another function code WRITE Note It is not possible to change to an instruction which is already assigned to a different function code 3 3 7 Reading and Changing the Clock This operation is used to read and change the clock in ID Controllers that have a Memory Cassette equipped with a clock It is possible to read the clock in any mode but the clock can be changed in MONITOR or PROGRAM mode only Operation RUN MONITOR PROGRAM OK OK
270. ted Special Instructions 0 0 00 cece eens 145 6 5 1 END ENDED veo i e ny E RI taba e 4 EA ans 8 145 6 5 2 COMPARE CMP QQ0 0 0c cee cnet rn 145 629 3 MOVE MOV QU e tese vu Sarena Sah ashe det Ad ERES 146 6 5 4 MOVE DIGIT MOVD 83 0 0 n 147 6 5 5 BLOCK TRANSFER XFER 70 0 0 00 0 149 6 5 6 JRECEIVE RXD 47 ook ood 28 Sek iii 150 6 5 7 TRANSMIT TXD 48 o 151 121 Instruction Set Section 6 1 6 1 Instruction Set The following tables list the instructions that can be used to program the ID Con troller Some programming information is provided later in this section see page numbers given in the following tables Refer to the CQM1 Programing Manual for information on instructions not described in this manual and for more in Mnemonic AND formation on writing ladder diagram programs AND Function Logically ANDs status of designated bit with execution condition AND LD AND LOAD Logically ANDs results of preceding blocks AND NOT AND NOT Logically ANDs inverse of designated bit with execution condition CNT COUNTER A decrementing counter LD LOAD Used to start instruction line with the status of the desig nated bit or to define a logic block for use with AND LD and OR LD LOAD NOT Used to start instruction line with inverse of designated bit OR OR Logically ORs status of designated bit with execution
271. the leftmost digit 5 Input and output bits not used here can be used as ordinary input and output bits 88 Advanced I O Instructions Section 5 4 Application Example With this instruction one key input is read in 3 to 12 cycles More than one cycle is required because the ON keys can only be determined as the outputs are turned ON to test them This example shows a program for inputting numbers from a hexadecimal key board Assume that the hexadecimal keyboard is connected to IR 000 input and IR 100 output 25313 Always ON DM1000 The hexadecimal key information that is input to IR 000 by HKY is converted to hexadecimal and stored in words DM1000 and DM1001 IR 00015 is used as an ENTER key and when IR 00015 turns ON the numbers stored in DM 1000 and DM 1001 are transferred to DM 0000 and DM 0001 00015 5 4 3 DIGITAL SWITCH INPUT DSW N Caution Hardware Preparations With this instruction 4 digit or 8 digit set values are read from a digital switch DSW utilizes 5 output bits and either 4 input bits for 4 digits or 8 input bits for 8 digits of the I O terminals sixteen 24 VDC inputs and sixteen transistor outputs This instruction cannot be used with contact outputs Connect the digital switch e g A7E or thumbwheel switch e g A7B and l O terminals When using a 4 digit input connect DO through D3 from the digital switch least significant digits
272. the CQM1 Programming Manual for details on timers and counters 1 TC numbers 000 through 015 and interrupt processing should be used for TIMH 15 whenever the cycle time is longer than 10 ms Using other timer counter numbers or not using interrupt processing will lead to inaccuracy in the high speed timers Interrupt processing can be set in DM 6629 of the ID Controller Setup 2 When the input condition turns OFF for TIM or TIMH 15 the PV is reset and returns to the set value The PV is also reset at the beginning of program execution or when the interlock condition goes OFF in a interlocked pro gram section IL ILC The PV for CNT or CNTR 12 is not reset like one for the timer instruction but rather is reset only when the reset input goes ON Data Area Functions Section 4 2 DM Area Data is accessed in word units As shown below the DM area contains both an area that can be freely used and areas with specific functions DM 0000 This area has no specific functions and can be used freely Both reading and writing are possible from the program DM 6144 This area cannot be written from the program It is used Fixed DM for storing information that is not to be changed Writing See note 1 can be executed by means of peripheral devices only DM 6450 ID error log This area is used to store errors that occur in ID commu nications This area cannot be written by the user DM 6541 ID Error T
273. the Instruction Note This instruction outputs word data to a 7 segment display It utilizes either 8 for 4 digits or 12 for 8 points output bit of the I O terminals sixteen 24 VDC inputs and sixteen transistor outputs This instruction cannot be used with contact outputs The data outputs are connected to output points 0 through 3 for the rightmost four digits and to output points 4 through 7 for the leftmost four digits The latch outputs are connected to output points 4 through 7 if only four digits are being displayed and to output points 8 through 11 if all eight digits are being displayed Output point 12 for 8 digit display or output point 8 for 4 digit display will be turned ON when one round of data is displayed but there is no need to connect them unless required by the application Output terminals employ negative logic The 7 segment display may require ei ther positive or negative logic depending on the model S First source word s O Output word e C Control data If the first word holding the data to be displayed is specified at S and the output word is specified at O and the SV taken from the table below is specified at C then operation will proceed as shown below when the program is executed 91 Advanced I O Instructions Section 5 4 Number of digits displayed 4 digits 4 digits 1 block Data Storage Format Leftmost 4 digits S41 Rightmost 4 digits S
274. the size of the program stored in the Memory Cassette 00 There is no program or no Memory Cassette is installed 04 The program is less than 3 2K words long 08 The program is less than 7 2K words long 081015 ID Controller Program Code Code 2 digit number indicates the size of the program stored in the ID Controller 04 The program is less than 3 2K words long 198 SR and AR Area Allocations 00 to 10 Function Not used Appendix D 11 ID Controller Setup Initialized Flag Turns ON when a checksum error occurs in the ID Controller Setup area and all set tings are initialized back to the default settings Program Invalid Flag Turns ON when a checksum error occurs in the UM area or when an improper instruc tion is executed Instructions Table Initialized Flag Turns ON when a checksum error occurs in the instructions table and all settings are initialized back to the default settings Memory Cassette Added Flag Turns ON if the Memory Cassette is installed while the power is on Memory Cassette Transfer Error Flag Turns ON if a transfer cannot be successfully executed when DIP switch pin no 2 is set to ON i e set to automatically transfer the contents of the Memory Cassette at power up 00 to 07 Minutes portion of the present time in 2 digits BCD Valid only when a Memory Cas sette with the clock function is installed 08 to 15 Hour portion of the present
275. thorized Distributor M Cat No W250 E1 02 Note Specifications subject to change without notice Printed in Japan This manual is printed on 100 recycled paper
276. tion requires one or more words in Program Memory The first word is the instruction word which specifies the instruction and contains any definers described below or operand bits required by the instruction Other operands required by the instruction are contained in following words one operand per word Some instructions require up to four words A definer is an operand associated with an instruction and contained in the same word as the instruction itself These operands define the instruction rather than telling what data it is to use Examples of definers are TC numbers which are used in timer and counter instructions to create timers and counters as well as jump numbers which define which Jump instruction is paired with which Jump End instruction Bit operands are also contained in the same word as the in struction itself although these are not considered definers 126 Basic Programming Concepts Section6 2 Word Structure Memory areas are divided up into words each of which consists of 16 bits num bered 00 through 15 from right least significant to left most significant Words IR 0000 and IR 0001 are shown below with bit numbers Here the content of each word is shown as all zeros Bit 00 is called the rightmost bit bit 15 the left most bit The term least significant bit is often used for rightmost bit the term most significant bit for leftmost bit Bit number 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Rw
277. troller System to aid in system operation Periph eral devices include printers programming devices external storage media etc Processing signals to and from peripheral devices including refreshing com munications processing interrupts etc A connector on a ID Controller or computer that serves as a connection to an external device A delay set for a data trace in which recording data begins after the trace signal by a specified amount The current value registered in a device at any instant during its operation Pres ent value is abbreviated as PV The use of this term is generally restricted to tim ers and counters A board onto which electrical circuits are printed for mounting into a computer or electrical device A mode of operation that allows inputting and debugging of programs to be car ried out but that does not permit normal execution of the program A computerized device that can accept inputs from external devices and gener ate outputs to external devices according to a program held in memory Pro grammable Controllers are used to automate control of external devices Al though single unit Programmable Controllers are available building block Pro grammable Controllers are constructed from separate components Such Pro grammable Controllers are formed only when enough of these separate compo nents are assembled to form a functional assembly An alarm given as a result of execution of an instruction designe
278. ts The delays for high speed counter interrupts are shown in the follow ing table Increment input mode Differential phase mode IN4 A 5 KHz 2 5 KHz IN5 B Normal input IN6 Z ON 100 us min required OFF delay 500 us min required 21 System Configuration and Installation Section 2 2 The minimum response pulses will be as follows Input A IN4 Input B IN5 Increment Mode 5 kHz max 200 us min 90 us min ON Phase A 2 Se cometer I uos do Ne en OFF 90 us min Phase input Difference Mode 2 5 kHz max 400 us min L ON Phase Ac xA Ly uc A a eil aa OFF ON Phase B OFF T To Ta T4 T4 To Ta Ta 90 us min Input Z IN6 100 us min ON Phase Z OFF 4 500 us min 22 System Configuration and Installation Section 2 2 Transistor Outputs 16 pts Model IDSC C1DT A E Max Switching Capacity 50 mA at 4 5 VDC to 300 mA at 26 4 V see diagram below Leakage Current 0 1 mA max Residual Voltage 0 8 V max ON Delay 0 1 ms max OFF Delay 0 4 ms max No of Outputs 16 points 16 points common 1 circuit Internal Current 170 mA max at 5 VDC Consumption Fuse 5 A one per common one only Fuse is not user replaceable Service Power Supply 40 mA min at 5 to 24 VDC x 1096 2 5 mA x number of ON points Circuit Configuration ro m a mu V Output OU ro LED gt to OUT15
279. uence OR NOT bit address WRITE These six basic instructions correspond to the conditions on a ladder diagram The status of the bits assigned to each instruction determines the execution con ditions for all other instructions Each of these instructions and each bit address can be used as many times as required Each can be used in as many of these instructions as required The status of the bit operand B assigned to LD or LD NOT determines the first execution condition Each instruction line connected to the bus bar on the left starts with LD AND takes the logical AND between the execution condition and the status of its bit operand AND NOT the logical AND between the execution condition and the inverse of the status of its bit operand OR takes the logical OR between the execution condition and the status of its bit operand OR NOT the logical OR between the execution condition and the in verse of the status of its bit operand There is no limit to the number of any of these instructions or restrictions in the order in which they must be used as long as the memory capacity of the ID Con troller is not exceeded There are no flags affected by these instructions Basic Instructions O Section 6 4 6 4 2 AND LOAD and OR LOAD AND LOAD AND LD a eres aa Ladder Symbol Key Sequence AND LD WRITE OR LOAD OR LD Ladder Symbol Key Sequence OR LD WRITE Description When instructions are combined into blocks that
280. ult of a calculation is above the upper limit of signed binary data 05 Underflow UF Flag Turns ON when the result of a calculation is below the lower limit of signed binary data 06 Differential Monitor Complete Flag Turns ON when differential monitoring is complete 07 STEP 08 Execution Flag Turns ON for 1 cycle only at the start of process based on STEP 08 08 HKY Execution Flag Turns ON during execution of HKY 09 7SEG Execution Flag Turns ON during execution of 7SEG 10 DSW Execution Flag Turns ON during execution of DSW 11 to 14 Not used 15 ID Function Error Flag Turns ON when there is an error in an ID function 00 0 1 second clock pulse 0 05 second ON 0 05 second OFF 01 0 2 second clock pulse 0 1 second ON 0 1 second OFF 02 1 0 second clock pulse 0 5 second ON 0 5 second OFF 03 Instruction Execution Error ER Flag Turns ON when an error occurs during execution of an instruction 04 Carry CY Flag Turns ON when there is a carry in the results of an instruction execution 05 Greater Than GR Flag Turns ON when the result of a comparison operation is greater 06 Equals EQ Flag Turns ON when the result of a comparison operation is equal or when the result of an instruction execution is O 07 Less Than LE Flag Turns ON when the result of a comparison operation is less 08 to 15 Not used
281. upt enable for IR 00003 0 Normal input 1 Interrupt input DM 6629 00 to 07 Number of high speed timers for interrupt refreshing 00 to 15 BCD e g set 15 for 00 to 14 08 to 15 High speed timer interrupt refresh enable 00 16 timers default setting in bits 00 to 07 disabled 01 Use setting in 00 to 07 DM 6630 00 to 07 Set to 00 08 to 15 Input Refresh Setting for input interrupt 0 00 Refresh 01 Don t refresh DM 6631 00 to 07 Set to 00 08 to 15 Input Refresh Setting for input interrupt 1 00 Refresh 01 Don t refresh DM 6632 00 to 07 Set to 00 08 to 15 Input Refresh Setting for input interrupt 2 00 Refresh 01 Don t refresh DM 6633 00 to 07 Set to 00 08 to 15 Input Refresh Setting for input interrupt 3 00 Refresh 01 Don t refresh DM 6634 00 to 07 Set to 00 08 to 15 Input Refresh Setting for ID communications response interrupt 00 Refresh 01 Don t refresh DM 6635 00 to 15 Reserved DM 6636 00 to 07 Set to 00 08 to 15 Input Refresh Setting for interval timer 0 00 Refresh 01 Don t refresh DM 6637 00 to 07 Set to 00 08 to 15 Input Refresh Setting for interval timer 1 00 Refresh 01 Don t refresh DM 6638 00 to 07 Set to 00 08 to 15 Input Refresh Setting for interval timer 2 also used for high speed counter 00 Re fresh 01 Don t refres
282. used 14 Peripheral Device Reception Completed Flag Valid only when RS 232C communications are used 15 Peripheral Device Reception Overflow Flag Valid only when RS 232C communications are used 00 to 15 RS 232C Reception Counter 4 digits BCD valid only when RS 232C communications are used 00 to 15 Peripheral Device Reception Counter 4 digits BCD valid only when RS 232C communications are used 197 SR and AR Area Allocations Appendix D Function 00 to 07 High speed Counter Range Comparison Flags 00 ON Counter PV is within comparison range 1 01 ON Counter PV is within comparison range 2 02 ON Counter PV is within comparison range 3 03 ON Counter PV is within comparison range 4 04 ON Counter PV is within comparison range 5 05 ON Counter PV is within comparison range 6 06 ON Counter PV is within comparison range 7 07 ON Counter PV is within comparison range 8 08 to 14 Not used 15 Built in Pulse Output Flag 0 Output stopped 1 Output ON 00 to 15 Not used 00 Memory Cassette Installed Flag Turns ON if the Memory Cassette is installed at the time of powering up 01 Clock Available Flag Turns ON if a Memory Cassette equipped with a clock is installed 02 Memory Cassette Write protected Flag ON when an EEPROM Memory Cassette if mounted and write protected or when an EPROM Memory cassette is mounted 03 Not used 04 to 07 Memory Cassette Code 1 digit number 0
283. vices 9 6 1 Non fatal Communications Errors General ID Controller operation and ID functions will continue after one or more of these errors have occurred Although operation will continue the cause of the error should be corrected and the error cleared as soon as possible ID Function Indicator Status RDY Lit ERR Flashing T R Not lit The status of other indicators is not relevant Message Meaning and appropriate response ID COMM ERR An error has occurred in communications with the Data Carrier SR 23302 will be ON and the nature of the error will be indicated in one of the flags between SR 23308 and SR 23313 The program should be written to execute retries If communications errors continue there may be problems in the system or system devices Investigate the error and take appropriate actions 9 6 2 Fatal Errors Although general ID Controller operation will continue ID functions will stop when any of these errors have occurred Indicator Status ERR ALM Flashing RDY Not lit The status of other indicators is not relevant FAL No Meaning and appropriate response SYS FAIL FAL 9C An error has occurred in ID functions and SR 25415 will be ON If an watchdog timer error occurred the content of AR 04 will be 01 Turn the power to the ID Controller off and then back on Indicator Status ERR ALM Flashing RDY Lit The status of other indicators is not relevant FAL No Meaning and appropriat
284. w instruction Note For instructions that require more operands input the operands and then press the WRITE Key Deletion Follow the procedure below to delete the IR 00103 NO condition at address 00205 1 2 3 1 Bring up the initial display 2 Input the address where the NO condition will be deleted and press the Down Cursor Sac It is not DICE oy to iu leading zeroes 3 E Je DEL aw Delete 00105 4 Press the Up Cursor Key to delete the specified instruction If the instruction has more operands the operands will be deleted automati cally with the instruction 44 Programming Console Operations Section 3 3 Corrected Program 00100 00101 00105 00201 00102 After completing the insertion and deletion procedures use the Up and Down Cursor Keys to scroll through the program and verify that it has been changed correctly as shown in the following diagram oos Exo 3 3 10 Entering or Editing Programs 00002 1 2 3 Input the first instruction and operand This operation is used enter or edit programs It is possible in PROGRAM mode only RUN MONITOR PROGRAM No No OK The same procedure is used to either input a program for the first time or to change a program that already exists In either case the current contents of Program Memory is overwritten
285. wn in the following table All of these are expansion instructions and must be assigned to function codes before they can be used Mnemonic Function TEN KEY INPUT TKY BCD input from 10 key keypad HEXADECIMAL KEY INPUT HKY Hexadecimal input from 16 key keypad DIGITAL SWITCH INPUT DSW SV input from digital switch 7 SEGMENT DISPLAY OUTPUT 7SEG BCD output to 7 segment dis play 5 4 1 TEN KEY INPUT TKY This instruction inputs 8 digits in BCD from a 10 key keypad and uses 10 input points from 00 though 09 Hardware Prepare a 10 key keypad and connect it so that the switches for numeric keys O through 9 are input to points O through 9 86 Advanced I O Instructions Section 5 4 Using the Instruction IW Input word Dj First register word Do Key input word If the input word for connecting the 10 key keypad is specified for IW then opera tion will proceed as shown below when the program is executed Assume that several numbers have already been entered IW 00 n Dy 1 Di Before 35 011 2 4 318 01 lg eoa ct In car execution i E TN oc Input from 10 key S er e s a 5 0 1 2 4 3 8 1 Bla 5 E D NN m i 0 NH l 2 o 1 2 41318 1 0 00 01 1 D D D D 1 1 1 1 poa S Y Pasa
286. ytes of source data shown below will be transmitted in this order 12345678 MSB LSB The following diagram shows the format for host link command TXD sent from the ID Controller The ID Controller automatically attaches the prefixes and suf fixes such as the node number header and FCS Node Header Data 122 ASCII characters max FCS Terminator number code RS 232C Mode N must be BCD from 0000 to 00256 The value of the control data determines the port from which data will be output and the order in which data will be written to memory Control Data The value of the control data determines the port from which data will be read and the order in which data will be written to memory Digit number 3 2 1 0 Byte order 0 Most significant bytes first 1 Least significant bytes first Not used Set to 00 Port 0 Specifies RS 232C port 1 Specifies peripheral port The specified number of bytes will be read from S through S NP2 1 and trans mitted through the specified port MSB LSB When digit O of C is O the bytes of source data shown above will be transmitted in this order 12345678 When digit O of C is 1 the bytes of source data shown above will be transmitted in this order 21436587 Note When start and end codes are specified the total data length should be 256 bytes max including the start and end codes Precautions S and S N 2 1 must be in the same data area DM 6144 to DM 6655 cann
Download Pdf Manuals
Related Search
Related Contents
ブラックダイヤモンド デイジー、エトリエ Sanyo FXCD-550 User's Manual Model/Modèle/Modelo SMP480 rev.00.R0 GE 21028, 21098 Cordless Telephone User Manual Philips 1 hour 2300mAh AA Multilife Battery Charger SESERA取扱説明書 User Manual Polygon System Tutorial Copyright © All rights reserved.
Failed to retrieve file