Home
NX70 Series Controllers User Manual - inverter - plc
Contents
1. to shared memory of high performance module Read Remote Slave Data from shared memory of high performance module Write Remote Receive Link Data Word Send Link Data Word Receive Link Data Bit Send Link Data Bit Slave Data to shared memory of high performance i module Read NR3 words from the module memory address NR6 of the slot NN5 and write them to the words starting from RRL Read NR3 words from NR5 and write them to the module memory address NR2 of slot NN1 Read NR1 words from the module memory address NR6 of the slot NN5 for the station NN4 on the remote network loop NN3 and write them in words starting at RR2 Read NR5 words from the module memory address NR6 and write them to the words starting from NR4 of the slot NN3 in the station NN2 on the remote network loop NNL Read NR1 words from the module memory NR6 of the slot NN5 in the station NN4 on the link network loop NN3 and write them to the words starting from RR2 Read NR5 words from the module memory NR6 and write them to the module memory starting from NR4 of the slot NN3 in the station NN2 on the link network loop NN1L Read the bit NR6 of the slot NN5 in the station NN4 on the link network loop NN3 and write it the bit register BRL Write the content of bit NB5 to the bit NR4 of the slot NN3 in the station NN2 on the link network loop NNL Catalog Numbers and Dimensions NX70
2. Hardware features Status LEDs Displays the operational status of the PLC such as the run stop error and alarm status Operation mode selector switch Used to change the operation mode of the controller RS232 RS485 communication ports 9 pin COM1 and COM2 ports Used to connect to the programming tool WinGPC touch panel or MMI Allows user defined communication COM 2 port Operating conditions setting switch DIP switch 1 4 poles termination resistance setting DIP switch 2 8 poles communication and program booting method setting Backup battery for memory Supplies a backup power to the built in memory RAM The connector is not connected at shipping Status LEDs On when the processor is running PROG On when the program can be edited COM1 Flashing when the processor is communicating via COM1 COM2 Flashing when the processor is communicating via COM 2 BATT Red On when the battery is not mounted or is low Operation mode selector switch Sets the processor operation mode to RUN mode RMT Sets the processor operation mode to RUN or PROG mode PROG Sets the processor operation mode to STOP mode i e PROG mode Operating conditions setting switch Switch for termination resistance setting DIP switch 1 For RS 485 communication set both pins 3 and 4 to On if the system is an end station Enables termination for COM1 terminal 3 4 For RS 485 communication set both pins
3. 153 Power supply module dimensions mm I NANANA 105 0 4 L I i I ae AL U laseciseizietzhel Specialty module dimensions mm NX7O MWVLINK 105 0 105 0 Decimal Bin Hex BCD Gray Code Cross reference Table Binary coded decimal D mom BE w M QO0G 0000 GO OO goog 000 0 00000 001 GO0G 0000 GO000010 Oooo 0000 0000011 OO000000 GO000100 Oo00 0000 00000101 gogg0000 GO000110 goggg000 00000111 Oooo 0000 C0007 000 Oo000000 00007001 GO0G 0000 GO T 01 0 GO0G 0000 00001011 OO000000 00001100 go000000 00001101 GO0G 000 0 0001110 OO0G 000 0 00001111 gog0g0go GOTTOQO OO0G 000 0 0001 0 001 GO0G 0000 G 0010 01 0 GO0G 0000 00010011 GO0G 0000 00010100 go000 0000 00010101 OO000000 00010110 gogg0000 00010111 gogg0000 00011000 GAAGA 00011001 gogg0000 00011010 GAAGA 00011011 Oooo 0000 00011100 GO0G 0000 00011101 Oo000000 00011110 goggg000 00011111 OO000000 00100000 goggg000 00111111 goog 0000 01000000 goggg000 11111111 g000 JAQ 9000 0000 a00 0000 9000 0001 O000 0000 0000 0010 O000 0000 9000 0011 go00 Q000 0000 07100 O000 0000 9000 0101 000 goga 0000 0110 GO0G goga 9000 0111 O000 0000 9000 1000 OO00 O000 O000 1007 O000 0000 0007 0000 a000 goga 9007 0007 O000 QO00 0007 GOT QO0G O000 9007 0011 o000 0000 0007 0100 a000 0000 9007 0101 O000 0000 0007 0110 a000 0000 9007 0111 0000 0000 0007 1000 G00 goga 0007 1001 0000 0000 0079 0000 a00 0000 0070 0007
4. 70mm or j AUS less 1 3 7 0 43 Use 2mm twisted pair cable or larger e Use power supply wire that is thicker than 2mm to minimize voltage drops e Use twisted pair cable to minimize noise effects Proper compressed connection terminal e Circular type terminal O type Lug e Circular type terminal with insulation resistance e Open type terminal Y type Lug Power supply system Use separate wiring systems for the PLC module I O module and power supply module as shown in the following diagram Power equipment External I O device Isolation transformer Use isolation transformer for noisy environments e Usea low noise power supply e Usean isolation transformer to reduce the noise as illustrated above Grounding Ground the PLC for noisy environments e Connected to the metal part of backplane the frame ground terminal is connected to a solid earth ground e Use ground wires with a minimum of 2mm and the triple grounding connection which has a resistance of less than 100 Q e The point of grounding should be as close to the PLC as possible and the ground wire should be as short as possible e lf two devices share a single ground point it may produce an adverse effect Always use an exclusive ground for each device Other devices such SUE FLL FF Other devices such as the AC drive Input and Output Wiring Input wiring Check points e Simultaneous ON points can b
5. NX70 HSC2 High performance high speed counter NX 70 HSC4 Pulse output module NX70 PULSE4 Special Registers Word registers FOOO to F15 FO register System check control System self check program checking operation control F1 register System check clock 0 01 0 02 0 1 ms timer output calculation results carry flag User defined For port COM2 F12 register ree Ea communication flag User defined communication control es F13 register System reservation F14 register PID control PIP operanon ns ana operaNonistop Channel 0 1 2 and 3 control flag F15 register PID control PO OpEraR ON MOCE ana OPERNOG Channel 4 5 6 and 7 control flag Word register FOOO F0 0 to FO 15 Only a bit process is available User program memory error Address Function Description Normal status When the power is applied the system self checks the CPU ROM check ROM Should any fault exist the error lamp is turned on Output and operation are halted When the power is applied the system self checks the CPU RAM check RAM Should any fault exist the error lamp is turned on Output and operation are halted faulty the error lamp is turned on Output and operation are halted Moaie range Indicates an invalid R word gt 64 used error Module change On when an I O module is removed added fails while the g system is running The error lamp is on and the CPU keeps running Turned off when the error is corr
6. Result carry Logical Instructions AND logical multiply OR logical sum Exclusive OR exclusive logical sum Exclusive OR NOT equivalence Rotate left without Carry Rotates right without carry Rotate left with Carry Rotate right with Carry Shift left Shift right Store AND of S1 and S2in D Store OR of Sl and S2in D AN EN EN El s2jo 1 ol 1 oloh lhi Store exclusive OR of S1 and S2 in D 2 ell REED s2 o 1 o 1 olola lo Store exclusive OR NOT of S1 and S2 in D 1 ON if they are equal ei sej oJ ajoja oleole l Rotate the content of D to the left N times lower gt higher STD word ose Rotate the content of D to the right N times higher gt lower pg SST TETE Rotate shift to the left N times Input FL8 value to the lowest bit 15 D word 00 lt F 1 8 Rotate shift to the right N times higher gt lower Input FL8 value to the highest bit CSL Dors joo pfrr Shift the content of D to the left N times input O to the lowest bit 15 D word Jooo Shift the content of D to the right N times input 0 to the highest bit LO Fe 15 D word oop F1 8 Word Conversion Instructions Convert binary value of S to BCD and store it in D s CL s00 o ELITE ET s6s eco Convert BCD of S to binary number and store it in D sL o 4 of 4 o o 1 839 eco pL L1 Jo ol 11 1 39 vec Store the location of the highest set b
7. d amp i if i lt 1 i gt 3 i 1 if i 3 i if port number 1 port number 2 DIVISOR 12 i else DIVISOR 40 i receiving delay 3 i 1 This program was written in Borland C It uses the peripheral devices such as PC to read M000 to M127 words stores them in the KO00 to K127 and then compares the two registry values and indicates the results on the screen using the OK or the FAIL notation The user may read or manipulate the various communication function codes and the sent received information to control the PLC in various ways This program consists of a header the main program and various functions The buffers and variables needed to store the communication data are set as global variables so that the main and various other functions may reference them By using the COM1 and COM 2 ports of the computer serial communication is possible By using the GPU 300 card parallel communication is also enabled The Qs QAs RRs and Rs are handled in the job function If there is any communication delay or frame breakdown retry 3 times then issue a communication error The procedure of the communication according to the J obID is LQ sending 2 QA receiving 3 RR sending 4 R receiving When an error occurs in a frame a retransmission should be made lt Main operations of the program gt L Adjusts the initial communication port and the board rate for communication Then initial
8. Jo Jojo 1 No of 1 7 D 1000 oook o goot D 7 Set carry bit F18 to L 1 F1 8 Reset carry bit F18 to 0 0 p Fig Invert carry bit F18 F1 8 F1 8 p 0 0 1 FMOV BMOV BFMV LDR DLDR STO DSTO Move Instructions Fill Move Bit Fill Move Load D S Store D S Copy Ns words from Sr to D sr 1 0 1 0 14 0 1 0 sr 1 lolololols 11111 sr 2 1 1 1 1 0 0 0 o When N 3 D 1 o 1 fo fo fo D 1 ofofolo 1 1 1 1 D 2 1 1111110 0ofo Repeatedly copy the value V to the Ns words starting from D v aH When N jon 110 4 0 1 0 1 0 1 o 1 o 1 o 1 0 D 2 1 0 1 0 1 0 1 0 3 1 o tfo 1fof1 0l Move Ns bits from the bit address Sb to the bit address Db Sb r Y When N 4 we es olofo lolo Db Repeatedly copy the bit value V to the N bits staring from the bit address Db V 0 1 N 1 256 Db is bit address When V 1 N 5 OF pene JO 1 ieo Db Store to D the value of the register whose absolute address is the value of S Refer to the manual for information about absolute address Store the value of S to the register whose absolute address is the value of D Refer to the manual for information about absolute address Program Control Instructions FOR FOR DFOR Execute instructions in the block For Loop Jo H Jo H between FOR and corresponding epee i oe NEXT Re
9. Master Control Set Starts circuit branch Master Control Reset Lo Ends circuit branch Extension Used in pairs with AND condition Extension S when extending Exclusive for WinGPC GPC5 etc Mnemonic TIM TOF SST UC DC RCT UDC On Delay Timer Timer Counter and Shift Register Instructions Name Off Delay Timer Single Shot Timer Up Counter Ring Counter Up Down Counter Shift Register TIM Ch 00010 SV 00050 TOF Ch 00064 SV 00005 SST Ch 00 100 SV 00005 D Ch 021 SV 005 Turns on after set delay time from input on Input Output Sse Turns off after set delay time from input off Input Output Seen Turns off after set delay time from input on Input Output fesse Up counter Input ILII LI Set value Output Down counter Output Set value Reset Ring counter Input Current t Set value value Output Reset Up Down counter U Input LL LI D Input LLII Set value Current value Reset Shift Register Time base Ch 0 to 63 0 01s Ch 64 to 255 0 1s Setting range SV 0 to 65535 Contact indicator TC channel number Time base Ch 0 to 63 0 01s Ch 64 to 255 0 1s Setting range SV 0 to 65535 Contact indicator TC channel number Time base Ch 0 to 63 0 01s Ch 64 to 255 0 1s Setting range SV 0 to 65535 Contact indicator
10. responsibility or liability for actual use based on the examples and diagrams No patent liability is assumed by OE Max Controls with respect to use of information circuits equipment or software described in this manual Reproduction of the contents of this manual in whole or in part without written permission of OE Max Controls is prohibited Throughout this manual we use notes to make you aware of safety considerations WARNING Identifies information about practices or circumstances which may lead to serious personal injury or death property A damage or economic loss Identifies information that is critical for successful pedi Loc application and understanding of the product Identifies information about practices or circumstances that ATTENTION Me can lead to minor personal injury property damage economic loss or product malfunction However depending on situation failure to follow the directions accompanying this symbol may also lead to serious consequences Contents 1 System Configuration 7 NX 70 Series PLC Features and System Configuration cccccccceeeeeeeeees 7 Module Types and Combinations Rs 10 Programming 1 OONS an a ina ina a nan 14 2 Hardware Features and Specifications 15 Overall Specifications sn aa esaue diag exe 15 BACK DIAN Genen E E 17 Processor MOdUI Cin san A 19 Power Supply Module cccccc
11. touching your controller system modules arse Cleaning Never use chemicals such as thinner because they VAN melt deform or discolor PCB boards Nasri Precautions for use of power e Run your PLC system only after the I O devices and T motor devices have started For example first power on in the PROG mode then change the operation mode to RUN e Make sure to power off I O devices after ensuring PLC operation is stopped e If you power on off 1 0 devices when the PLC system IS in operation the system may malfunction because Input signal noises may be recognized as normal inputs Nasri Before powering on Make sure to follow these directions before powering on your PLC system e When installing the system ensure that there are no metal chips or conductive fragments that stick to wiring cables gt e Ensure that power supply and I O wirings and power supply voltage are all correct e Securely fasten installation and terminal screws e Set the operation mode switch to PROG mode System Configuration NX70 Series PLC Features and System Configuration System configuration NX70 CPU70p1 Communication cable NX_CBLCPU 2 NX70 CPU70p2 9 6k step base memory 20k step base memory 1 port RS232 RS 485 2 ports RS232 RS485 Computer WinGPC Features High speed processing With the high speed ASIC the NX 70 processes basic Instructions at a speed of 0 2 us per step Runtime Edi
12. 3 and 4 to Off if the system is not an end station Disables termination for COM 1 terminal For RS 485 communication set both pins 1 and 2 to On if the system is an end station Enables termination for COM 2 terminal OFF OFF For RS 485 communication set both pins 1 and 2 to Off if the system is not an end station Disables termination for COM 2 terminal 1 2 Switch for communication and program booting method setting DIP switch 2 OFF ON Sets the communication speed on COM 2 terminal to 38400 bps ON ON Sets the communication speed on COM2 terminal to 4800 bps Sets the communication speed on COM 1 terminal to 9600 bps ON OFF Sets the communication speed on COM 1 terminal to 19200 bps Sets the communication speed on COM 2 terminal to 9600 bps a ON OFF Sets the communication speed on COM 2 terminal to 19200 bps OFF ON Sets the communication speed of COM 1 terminal to 38400 bps rs Sets the communication speed on COM1 terminal to 4800 bps ON Selects RS 485 communications for COM1 LR RS 232C communications for COM1 ee Selects RS 485 communications for COM2 OFF Selects RS 232C communications for COM2 ma Always set to Off Used for system setting ON Loads the program from EEPROM flash ROM at power on Operates the system with the program in RAM at poweron Power Supply Module POWER NX70 POWER1 NX70 PWRDC NX 70 POWER2 Hardware features Power status LED Turns on w
13. J ob ID 10 Success communication processing switch J obID case 0 case 5 if port number 5 J obID 0 5 A frame that sends the data from the peripheral device to the PLC It resets if port_number 4 outportb 0x301 0xFF the watchdog and the CRC Use a delay after the send to avoid errors due else outportb PORTADD 0x0C inportb PORTADD 0x0C to communications delays 0x02 delay sending_delay if ob D 5 RR_occuring watchdog 0 index 0 sending_Index_max 5 Crc OxFFFF J obID break case 1 case 6 if receiving_occuring data Recport J obID 1 6 if sending_occuring Sends the Q and RR data When there is no error it resets the watchdog and proceeds on to the next sequence if index lt sending_Index_max 1 Trsport receiving_frame index Crc16 receiving_frame index if index 3 if receiving frame 3 sending_Index_max 256 5 else sending_Index_max receiving_frame 3 5 else if index sending_Index_max 1 receiving framelindex ower byte Crc Trsport receiving_frame index else if index sending_ Index max receiving_framelindex Hower_byte Crc Trsport receiving_frame index else if index sending_ Index max nf receiving_frame index upper_byte Crc Trsport receiving_framelindex watchdog 0 J obID y index break case 2 case 7 if port number 5 J obID 2 7 A sequence that senses the sending of
14. OO00 QO00 0070 0010 GO0G O000 0070 0011 G00 JAQA 0070 0700 ago 0000 9070 0101 g000 0000 00700110 a000 0000 9070 0111 O000 0000 0070 1000 ggo 0000 0070 1001 G00 Q000 0077 000A GO0G O000 0077 GO T 000 Q000 0077 GOT G00 O000 01100011 G00 O000 0110 0011 G00 001TA 01010101 a000 0000 0000 0000 a000 0000 9000 0001 O000 0000 9000 0011 O000 0000 0000 0010 a000 0000 0000 0110 0000 0000 9000 0111 a000 GG 0000 0101 a000 000o 0000 0100 O000 0000 0000 1100 0000 GG 0000 1101 0000 0000 9000 1111 a000 0000 0000 1110 a000 0000 0000 1010 a000 0000 0000 1011 a000 0000 9000 1001 o000 0000 9000 1000 Q000 AGG 00I 1000 oo00 0000 00071 1001 O000 0000 0007 1011 000 0000 0007 1010 O000 0000 0007 1110 000 0000 0007 1111 a000 GG 0007 1101 QG 0000 0007 1100 QG 0000 0007 0100 a000 0000 9007 0101 gg00 0000 0007 0111 agoa 0000 9007 0110 O000 0000 0007 0010 0000 0000 9001 0011 0000 0000 0007 0007 0000 0000 0007 OOOO a000 9000 0011 000A a000 0000 0010 0000 000A 0000 0110 0000 0000 GG 0110 0000 ASCII Code Table Appendix Communication Protocols for NX70 The communication protocol of NX 70 CPU 70p1 and CPU 70p2 PLCs provides a complete method of communications between the graphic consol programmers WinGPC and the PLC by controlling programs CPU status and I O at user s convenience The user can easily expand the capabilities of the overall PLC system by communicating to the PLC using a variety of peripheral communica
15. Product Catalog Numbers Processor module Using WinGPC as programming device 9 6k step built in 0 2 us per step built in flash NX70 CPU 70p1 ROM general CPU module CPU module 20k step built in 0 2 us per step 2 ports real time clock RTC function built in flash ROM NX70 CPU 70p2 proportional integral differential PID function Advanced CPU module Processor communication cable bse ne om Communication cable for NX 70 NX 700 rs NX CBLCPUS5 processor module Backplane Power supply module NX70 POWER1 110 to 220V ac free voltage 4A at 5V 0 3A at 24V Mimiti inpu e i NX70 POWER2 110 to 220V ac free voltage 4 5A at 5V eee NX 70 PWRDC 24V dc input 4 5A at 5V DC input type 1 0 modules 12 to 24V dc 20 pin terminal board 8 points per COM NAIS AIDD both and polarities are available l 24V dc 20 pin terminal board 8 points per COM Terminal 16 points NX70 X16D1 both and polarities are available type Input NX70 X16A110 100 to 120V ac 20 pin terminal board 8 points per COM module i i NX70 X16A220 200 to 240V ac 20 pin terminal board 8 points per COM NX70 X32D 12 to 24V dc two 20 pin connectors 8 points per COM Soo both and polarities are available Connector oints j 24V dc two 20 pin connectors 8 points per COM type NX70 X32D1 He both and polarities are available 7 Relay output 20 pin terminal board 3A at 250V MAIRES one 4 points per COM four 1 point per CO
16. Ratedioad olageuren Zoe Vac ape O onorare oworin offvoragecurent svorssasmoriss e E 10 ms or less time 10 ms or less 80 mA or less at 5V Common method PONS pe ah tand polarity 8 points per COM are available Terminal block terminal screw M 3 0 Internal circuit and external wiring diagram Vcc 2 gt G mn 1 Vcc A a o ley 32 S vA 24V dc Catalog number NX 70 XY 32 Number of 1 0 points l 32 points 16 inputs DC input 16 outputs TR output NPN O enoe mowe C wene swe OOOO e e A L Rate londvoagefument OV oaon O onore SVores moe O omotom 25Vorless i5maorless LE mputimpedance Approx Kf e ened 120 mA or less at 5V 16 points per COM both and 16 points per COM polarities are available Common method Internal circuit and external wiring diagram VDC COM VDC COM Status display LED 2 X0 ct 12 X1 lt DC VDC 12028 gg La Te L 0 0 H oji l oa ow shpi m lost 6 0 16 inputs DC input 16 outputs TR output For external connections of the connector please purchase cable harness NX70_CBLDC and Pin Type Ass y NX PIN20 For more information regarding the wiring methods refer to Connector Type Module Wiring on Chapter 4 Addressing Overview Addressing Overview All the memory used for external I O processing and internal data processing has always both address and data th
17. TC channel number Channel range Ch 0 to 255 Shared with timer Setting range SV 0 to 65535 Contact indicator TC channel number Channel range Ch 0 to 255 Shared with timer Setting range SV 0 to 65535 Contact indicator TC channel number Channel range Ch 0 to 255 Shared with timer Setting range SV 0 to 65535 Contact indicator TC channel number Channel range Ch 0 to 255 Shared with timer Setting range SV 0 to 65535 Contact indicator TC channel number Usable address areas for Sb and Eb M K 1 bit shift on each p input Stores the status value in Sb for every P input Max number of instructions 256 Comparison Instructions START lt AND lt OR START gt AND gt OR gt START gt AND gt OR gt START lt AND lt OR lt START lt AND lt OR lt On if A is equal to B A and B are word double word or data value On if A is not equal to B is same with A and B are word double word or data value On if A is greater than B On if A is equal to or greater than B On if A is equal to or less than B On if A is less than B feye For double word comparison instructions the letter D should precede the word comparison instructions in the Mnemonic program Substitution Increment and Decrement Instructions LET Let LET ae D D Store the value of S into D DLET Substitution S S INC Lis pe Increment
18. W2559 or from PVO to PV255 The value holds true in STOP PROG state in this area The present value PV of the counter is maintained even after the power Is off Processor Operation Mode What is the Processor operation mode The processor has an external RUN REMOTE PROG switch The PLC performs a system check that determines the position of the switch The switch position determines which operating mode the PLC is in It can set to RUN STOP REMOTE or ERROR mode RUN Mode operating The PLC reads the external contact signals in Run mode and executes the user program stored in RAM The external outputs are updated every scan according to program results STOP Mode The user program is stopped and the external outputs are turned Off In the Stop mode you may correct delete or transfer the program This is the only mode in which you can save a program in flash memory PAUSE Mode A user program is operated at every scan and the I O and result value IS Maintained This mode is used when checking and debugging a program at every scan This mode is similar to the Stop mode but it does not initialize data ERROR Mode It occurs when the CPU module finds internal defects after running the self diagnoses Functions are not executed normally in this mode When an error occurs the CPU stops all programs and turns all output off When an Error mode occurs the user should check the error code and take appropriate measures
19. a networked temperature controller has the networking function of the RS485 added to the existing SDU functions The function of RS485 is added to the existing SDU functions High speed counter High speed counter 4 Pulse I O module M ulti Wire Link module DeviceNet Slave module Motion Control Module NX70 HSC1 1 channel of a high speed counter input and a simple pulse output 200 Hz to 40 kHz Includes 24 bit binary up down counter 16 777216 to 16 777 215 simple pulse output NX70 HSC2 2 NES of a high speed counter input b ton 24 bit binary up down counter 16 777 216 to 16 777 215 NX70 HSC4 NX70 PULSE4 4 channels of high speed counter input 8 points of a interrupt input and 8 points of a comparison output 200 kcps 32 bit binary up down counter 2 147483 648 to 2 147 483 647 Multiplication x1 x2 x4 Input time constant setting 4 8 16 32W us pulse width 2 5 us Multi function module 4 channels of pulse output 4 channels of PWM output 4 channels of high speed counter input 8 points of interrupt input and 8 points of comparison output High speed counter input 200 kcps 32 bit binary up down counter etc Pulse output 100 KHz output at 1 Hz module direction control and individual input CW CCW PWM output 30 KHz output at 1 Hz module Duty 0 to 100 at 1 module Function NX 70 HSC4 pulse output 4 channels PWM output 4 channels Networking modu
20. and Decrement Instructions sesssesssserreeerrrerrren 91 Arithmetlc Instructions ss tonne tintin lente 92 OdICALINSTEUCTIONSE sn Gir eee na Mn Nm 93 ROTEUOM MSCONS en RAR ee ner nt tnt 93 Word Conversion Instructions aaea a a ia 94 BIT COVerSION IRSTU TIONS sasea a a nn nu AN 95 MOVE IMSUUCHO MS exit ne Ru nee tn 96 Progr am EontroliInStHUCtONnS insomnie 97 System Control IMSMUCTIONS nn ar eect acti eed 98 Communications Control Instructions ss 99 7 Catalog Numbers and Dimensions 101 NX 70 Product Catalog Numbers 101 NX 70 Product DIMENSIONS spisie tetiron a 106 Decimal Bin Hex BCD Gray Code Cross reference Table 109 ASCIICOdE Bro peer pea er ren re Ef een 110 Appendix Communication Protocols for NX70 111 Communication Protocols for NX 70 NX 70 CPU 70p1 and NX 70 CPU 70p2 111 COMMUAICAUONMPIOIOCOIS RAR NS Re nt 112 Structure of Communication Frames 117 Communication Program Examples 122 Safety Considerations Please read this manual and the related documentation thoroughly and familiarize yourself with the directions before installing operating or performing inspection and preventive maintenance Make sure to follow the directions correctly to ensure normal operation of the product and your safety RUE A ATTENTION i If this product is used in a situation that may cause personal injury and or significant product damage implement safety measures s
21. be replaced when expanding the number of modules Module Types and Combinations Combinations of backplane and modules Backplane Processor module 2 6 slot type NX70 BASE06 os NX70 CPU70p1 NX70 CPU70p2 9 6k step base memory 20k step base memory 1 port RS232 RS485 2 ports RS232 RS485 Power supply module NX70 POWER1 110 to 220V ac Input 3 5A at 5V 0 3A at 24V NX70 POWER2 110 to 220V ac Input 4 0A at 5V NX70 PWRDC 24V dc 4 0A at 5V 4 12 slot type NX70 BASE12 e 16 point output e 32 point input module module Relay OUT 24V dc IN uo mocure NX70 Y 16R NX70 X32D e 16 point input a NX 70 X32D1 module 24V dc IN e 32 point output NX 70 X 16D module NX70 X16D1 Transistor OUT HOVA NX70 Y 32T eS 220V ac IN 12 NX70 X16A 220 1 Ht r e 3 point output g module HA Relay OUT a NX 70 Y 8R e High performance e Analog input high speed module counter 4CH 4 channels 4 channels current voltage input NX70 HSC4 NX 70 Al4VC oo e Pulse output e Analog output module module 4 channels 4 channels current NX70 PULSE4 output NX 70 AO4C 4 channels voltage output NX 70 AO4V 2 channels current output NX 70 AO2C 2 channels Voltage output NX70 AO2V NANANANAAANAAAAAAAA 5 ee ee ee eae N e MW link module NX 70 MWLINK Wire Link funchion SCU module NX 70 SCU NX 70 CPU 70p1 A D D A RTD TC SCU 9 6
22. conditions e Ambient temperature outside the range of 0 to 55 C e Ambient humidity outside the range of 30 to 85 RH e Sudden temperature changes causing condensation e Inflammable or corrosive gases e Excessive airborne dust metal particles salinity e Benzene thinner alcohol other organic solvents or strong alkaline solutions such as ammonia or caustic soda e Excessive vibration or shock e Direct sunlight e Location near high tension wires high voltage devices power cables power devices or other devices with generate large power Surges or electronic fields when starting and stopping esp if within 100 mm Power Supply Module Wiring Power supply module wiring Use 2mm twisted pair cable or larger Breaker Lrnrmnrnnd Use an isolation transformer when effects m ad 264 VAC from noise are great FRAME GROUND Use 2mm cable or larger for grounding ni 24V DC 0 3A ST output 24V can be supplied to an 1 0 Module Must avoid parallel connections with other 24V power supply modules or with other power supply modules The power supply voltage connected to the power supply module must be within allowable limits NX70 POWER1 NX70 POWER2 110 to 220V ac 85 to 264V ac Terminal for the power supply module e The terminal screw M3 5 is recommended e The compressed connection terminal is recommended for the wiring Open type terminal Circular type terminal
23. data only The L area can be used as internal contacts Keep contact K data register W and counter s preset value register retain their last values before power was removed Cleared when a new program is downloaded A bit address is composed of a character R L M K F that identifies its type a five digit word address 0 0 to 127 15 increases by 0 to 15 The timer counter contact is represented by the TC label followed by three digits The three digits indicate the channel number of the timer counter TCO00 to TC255 TIM OOO indicates a contact instead of TCO00 for PGM 10 and PGM 500 A word address is composed of a character R L M K W and a four digit number 0000 to 2047 Special registers have alternative address representation Special registers SROOO to SR511 can be also represented as W2560 to W3071 Both of bit and word addresses can be used to address the memory areas of R L M K However be cautious that instructions use a specific type of address either bit or word address and the used addresses are resolved automatically depending on the type of Instruction A bit can have the content of either On 1 or Off 0 state A word is composed of 16 bits and holds a data value from 0 to 65 535 A double word is composed of 32 bits and holds a data value from 0 to 4 294 967 295 Expression example Bit number l or 2 digit range is 00 to 15 increase as a decimal module When used with a bit number 3
24. error Peripheral device PLC When OA is not received Peripheral device PLC When R is not received Peripheral device PLC For the internal processing of the PLC CPU send RR at least 5 msec after receiving OA 3 seconds 3 seconds Response to repeated function code Peripheral device PLC Function codes included in the query Each function code is 1 byte When the PLC receives a query Q the function code of the final response R is formed by adding 80 hex to the function code sent by the query The value added to the function code sent by the query differs for 2 step and 4 step by 20 hex The function code of the R message can be used by the peripheral device to verify that the correct Q message has been received by the PLC Communication function codes notes hexadecimal notations Read bits Write bits Read words Write words Read bits and words Write bits and words Read program Write program Read instruction Change instruction Change operand Insert instruction Delete instruction Search instruction Search operand Delete all parts of program No service a m ni mi 22 02 A2 82 23 03 A3 83 24 04 A4 84 25 05 A5 85 26 06 A6 86 27 07 A7 87 28 08 A8 88 29 09 A9 89 2A 0A AA 8A 2B 0B AB 8B 2C 0C AC 8C 2D 0D AD 8D 2E 0E AE 8E 2F 0F AF 8F 20 10 AO 90 0 s The bit word address assignment uses the
25. module type Check the specifications of each output module and be cautious when the ambient temperature is high e Usea protection circuit when connecting inductive loads and Capacity loads e Use the output module only within the specified ranges of operation because of the current limitations per common Protective circuits for inductive loads e When connecting an inductive load a protective circuit should be connected in parallel with the load e When connecting the DC type inductive loads and relay type output module be sure to connect a diode for protective circuit across the ends of the load This will affect the life of the relay When using an AC type inductive load Relay output type Surge absorber Varistor Output Output COM COM Terminal Terminal Example of surge absorber Resistance 50 Q Capacity 0 47 pF feses When using an SSR output type unit the capacitor can delay the Off time Use a resistor only When using a DC type inductive load Output sage More than 3 times of the Terminal Le Voltage within band load voltage iode COM Average rated current Over the load current Terminal Connection of capacitive loads When connecting the loads with large inrush currents be sure to connect a protective circuit Resister Output Terminal Output Terminal COM Terminal COM Terminal Precautions for overload The fuse within the module is provided to p
26. register F12 F12 0 to F12 15 Only a bit process is available F12 0 RTC check On when the RTC is enabled e F12 2 On when the 9 6 KW of flash memory is installed F12 3 On Onwhen the 16 KW of flash memory is installed the 16 KW of flash Onwhen the 16 KW of flash memory is installed is installed F125 Battery error On when the battery is not connected or the voltage is lower than the backup voltage F12 7 On when any error exists in the periodical program a F12 10 RTC set error On On when there is an error setting the RTC there is an error On when there is an error setting the RTC the RTC Output Saving Flash and Off when the program is normally saved into Flash by en checking boot setting F12 15 On Puput EEPROM backup On when the program in EEPROM is the same with that in F12 12 check RAM F12 13 RTC Set 1 On when you change the year month day or date Off O when the data setis normal F12 14 RTC Set 2 On when you change the hour minute or second Off JO when the data set is normal F12 15 Saving Flash On when you save the current program into the flash Off JO when the data set is normal Special registers SRO to SRO16 W2560 to W2576 May be modified each is composed of 1 word Indicates the CPU ID number in the lower 8 bits O to 223 are the valid user SROOO CPU ID number defined values 255 is the default value Indicates current CPU information state run stop remote control error m
27. register only for word use e K Keep register Can be bit word or double word Used for general calculation programs The value Is preserved after the power is turned off e F Flag register Only process bit These bit registers provide special application specific functions to the programmer of the PLC They are also used as system control bits providing Run Stop control of the PLC e When a calculation or input value exceeds 65 535 FFFF Use a double word instruction that can store and calculate values over 65 535 in the K M R and W registers When a double word instruction is used it can represent values up to 4 294 967 295 22 e When you want to reload the contents or values that you worked today Use the K and W area These are preserved unless specifically erased The W area Is erased by special instructions or program downloads e When you need numerical expressions such as A B C 34 x45 D A1 gt C1 Use the R M W and K area If you use the R area you can refer to and output calculated values in I O modules For bit operations such as setting resetting shifting or rotating Use the M K and R area You cannot perform bit operations in the W area When you want to refer to or modify the set value of the timer or counter Refer to or modify W2048 to W2303 or SVO to SV255 When you want to refer to or modify the present value of the timer or counter Refer to or modify the address area from W2304 to
28. 0 to 5V O to 10V Resolution 0 153 mV to LO mV Conversion speed 125 ms Ch Current Input 16 bit A D Converter 20 mA 0 to 20 mA 4 to 20 mA Resolution 0 519 uA to 2 0 uA Conversion speed 125 ms Ch 4 channels voltage output 14 bit D A Converter 10V 5V 0 to 10V O to 5V Resolution 0 30 5 mV to 10 mV Conversion speed 2 5 ms Ch 4 channels current output 14 bit D A Converter Oto 20 mA 4 to 20 mA Resolution 0 037 uA to 2 0 uA 4 uA Conversion speed 2 5 ms Ch 2 channels voltage output 14 bit D A Converter LOV V 0 to 10V O to 5V Resolution 0 305 mV to 1 0 mV Conversion speed 2 5 ms Ch 2 channels current output 14 bit D A Converter 0 to 20 mA 4 to 20 mA Resolution 0 037 uA to 2 0 uA 4 uA Conversion speed 2 5 ms Ch 4 channels 3 Wire type Pt100 Pt200 Pt500 Pt1000 J Pt100 J Pt200 J Pt500 J Pt1000 N1100 N1120 CU50 300 Q 600 Q 2000 Q Resolution 0 1 C 0 1 F 10 mQ 20 mQ Conversion speed 60 ms Ch 4 channels Type B R S N K E J T The temperature range differs depending on the sensor type 30 mV 1 uV bit 60 mV 2 uV bit Resolution 0 1 C 0 1F 1 uV 2 uV Conversion speed 60 ms Ch 20 pin terminal type Communications module NX70 SCU RS232C RS 485 2 ports Data processing with ladder program transmits and receives data through RS232C RS485 communication devices Binary ASCII code connects to a networked inverter a networked servo and
29. 048 points Special contact F FO 0 to F15 15 256 points 256 channels Timer Counter Set value range 0 to 65535 Timer Counter Timer 0 01 second CH0O00 to CH063 64 channels TC or TIM 0 1 second CH064 to CH255 192 channels Counter CHOOO to CH255 256 channels W0000 to W2047 Data register W W0000 to W2047 2 048 words W3072 to W5119 4 096 words re W256 SR000 to W3071 SR511 512 words l Year Month Date Hour Real time clock Not Applicable Minute Second Day Supports both RS232 and RS485 4800 9600 19200 38400 bps Supports both RS232 and Communication l RS 485 4800 to 38400 bps Not Applicable Memory size Supports a user defined protocol Backup using flash ROM Supports all built in CPU module e Keep contact K data register W counter s preset value register retain their last values before power was removed e The super capacitor in the processor module backups all user programs and specific registers for up to 48 hours even in the event of a power failure Backplane The following backplanes are available NX70 BASEO2 NX 70 BASE03 NX70 BASE05 NX 70 BASE06 NX 70 BASE08 NX 70 BASE10 and X70 BASE12 Example of 5 slot backplane NX 70 BASE05 Hardware features Backplane mounting holes Use these holes to mount the backplane to a control panel control box Use the M5 screw for mounting Module guides Align the tab on the module with one
30. Crc OxFFFF do tm unsigned far Ox046C New tm J ob if watchdog gt Time_limit watchdog 0 retrialC J obID J obID amp 0x05 if Old New amp 0x02 0 watchdog watchdog l Old New Jwhile retrialC 0 amp amp Success FALSE if retrialC 0 ret 1 else ret 0 return ret void Mword_reading void Example of Read Register int i receiving_frame 2 3 EXAMPLE READ WORD M 000 M 0127 receiving_frame 3 3 Number Of Byte For Information 3 receiving_frame 4 0xC0 BASE M000 00c0 receiving_frame 5 0 BASE HIGH receiving_frame 6 128 Number Of Byte MO00 M 127 if communication 0 printf READ M0000 M 0127 OK n for i 0 i lt 127 i 4 M i J receiving_frame i 2 4 receiving_frame i 2 45256 else printf communication error n void Kword_writing void Example of Write Register int i receiving_frame 2 4 receiving_frame 3 130 receiving_frame 4 0x40 receiving_frame 5 1 for i 0 i lt 63 i H receiving_frame i 2 6 lower_byte K i receiving _framefi 2 7 upper_byte K i EXAMPLE write WORD KO00 K063 Number Of Byte For Information BASE KO00 0140 LOW BASE HIGH obID 4 9 Stores the received data in the internal receive buffer and compares the CRC value sent by the PLC to the calculated CRC value It notifies the system that a successful communication is ma
31. D by 1 whenever input INCB ALES Hint Increment D by 1 in BCD mode DEC Decimal decrement DEC DDEC Decrement D by 1 whenever input DECB DECB DDECB BCD decrement Je H J p Decrement D by 1 in BCD mode DDECB whenever input goes on Arithmetic Instructions ADD DA DD Decimal operation N2 ADDB D S1 S2 BCD addition DADDB BCD operation SUB Decimal D S1 S2 DSUB subtraction Decimal operation po D S1 S2 Decimal addition SUBB D S1 S2 DSUBB BCD operation MUL Decimal au D S1 x S2 DMUL multiplication a Decimal operation MULB ee MULB aaa D S1 x S2 BCD multiplication on sa DMULB N2 N2 BCD operation DIV D S1 S2 Decimal operation DDIV BCD subtraction Decimal division Error when S2 0 DIVB DDIVB D S1 S2 BCD operation Error when S2 0 BCD division ADC Decimal addition D S1 52 CY DADC with carry Decimal operation include carry ADCB DADCB BCD addition with D S1 S2 CY cany BCD operation include carry SBC Decimal subtraction with DSBC SBCB BCD subtraction DSBCB with carry Decimal operation include carry 05808 D S1 S2 CY a BCD operation include carry S DABS D D ABS A Absolute value DABS Laon Absolute value operation B WNOT NOT WNOT DNOT D ore 1 s complement of D in DNOT 1 s complement j NEG Negative NEG DNEG Store 2 s complement of D in D DNEG 2 s complement L s complement 1
32. LED External connection method Terminal block terminal screw M 3 0 Suitable wire size 0 5 to 125 mm Weight Approx 160 g Shape Type A Internal circuit and external wiring diagram 12V to 24V dc Note 12V to 24V dc Note NC No Connection feyp The input voltage of NX70 X16D1 module is 24V dc Product name DC input module Response Off On 2 ms orless time On Off 2 ms or less Internal circuit and external wiring diagram The numbers in the picture below 1 to 20 indicate the numbers that are printed on the front of each product I H 12 to 24V dc Note H _ H 12 to 24V dc 12 to N ote 24V dc Note The input voltage of the NX70 X32D1 module is 24V dc e The internal circuit is the same as that of the NX70 X16D module on the previous page e The I and Il connectors are positioned in opposite directions Please use caution prior to connecting e For external connection of the connector please purchase a cable harness NX70 CBLDC and a Pin Type Ass y NX_PIN20 For more information regarding the wiring methods refer to Connector Type Module Wiring on Chapter 4 Response 15 ms or less time 15 ms or less dal hol of ol of al 100to 120Vac Note NC No Connection The input voltage of NX70 X16D1 module is 24V dc Output module specifications Response 10 ms or less time 10 ms or less External supply power 24V 150 mA or less Int
33. M utput module NX70 Y16R Relay output 20 pin terminal board 1A at 250V 8 points per COM E Relay output 20 pin terminal board 1A at 250V Terminal isoen PMs 8 points per COM Varistor type points NX70 Y 16T TR output NPN 20 pin terminal board 0 6A at 12 to 24V 8 points per COM NX70 Y16SSR SSR output 20 pin terminal board 0 5A at 100 to 220V 8 points per COM NX70 Y 32T TR output NPN two 20 pin connectors 0 4A at 12 to 24V 32 points 16 points per COM Connector NX70 Y 32P TR output PNP two 20 pin connectors 0 4A at 12 to 24V type 16 points per COM e 12 to 24V dc 8 points 8 points per COM Input 8 both and polarities are available points 16 points NX70 XY 16 pe e Relay output 8 points 1A at 250V 8 points per COM Output 8 20 pin terminal board points Mixed Input 16 module e 12 to 24V dc 16 points 16 points per COM both and points polarities are available two 20 pin connectors Output 16 e TR output NPN 16 points 0 4A at 12 to 24V points 16 points per COM To be released Dummy module NX70 DUMMY Dummy Module oe 32 points NX70 XY 32 Analog input module A D For both voltage and current Analog output module D A Resistance temperature detector RTD module Thermocouple input module Serial communication module SCU Analog module NX 70 Al4CV NX 70 RTD4 NX 70 TC4 4 channels voltage input 16 bit A D Converter V 10V
34. Maximum Value for OEMs CONTROLS NX70 CPU750 R RUN ERROR POWER 0 g PROG Er 9 TEST ALARM i BREAK z il NX70 SCU NX70 MWLINK NX70 S gt O_o 7 0 PU70p2 PWA ALARM N X 70 E CR STORES i z com PLC Link e de 02 a AL ni 2 enn SPEED noi R02 z Programmable POWER Q PROG C W Mode TERM ERMI ERR Controller COMI ES we Mode cOM2 ii rt 7 Se so E a NX70 AT E i l Pragrammable COM1 a r Controller RS232C 2 a RS485 Oo OE Max A El r H fe AS2320 Wa d RS485 En a W NX70 Series Controllers User Manual Important User Information Solid state equipment has operational characteristics differing from those of electromechanical equipment Because of this difference and also because of the wide variety of uses for solid state equipment all persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable In no event will OE Max Controls be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment The examples and diagrams in this manual are included solely for illustrative purposes Because of the many variables and requirements associated with any particular installation OE Max Controls cannot assume
35. RT Chip 8250 if port number 5 outportb PORTADD 0x0B 0x80 Set of DLAB 1 outportb PORTADD 0x09 0x00 Set of High Byte DIVISOR outportb PORTADD 0x08 DIVISOR Set of Low Byte DIVISOR outportb PORTADD 0x0B 0x03 Length 8 Processing communication of Read amp Write for Parity None Stop 1 nPLC ID CPU ID scanf d amp PIcID Mword_ reading Kword_writing void RR_occuring void receiving_frame 2 0 receiving_frame 3 1 receiving frame 4 0 void Trsport unsigned int data if if port number 5 outportb PORTADD data else outportb PORTADD 0x08 data unsigned int Recport void unsigned int dt if port number 5 dtSnportb PORTADD else dt inportb PORTADD 0x08 return dt BOOL sending_occuring void BOOL tf if port number 5 tf inporto PORTADD 0x02 amp 0x80 0x80 else tf inportb PORTADD 40x0D amp 0x20 0x20 return tf BOOL receiving _occuring void BOOL rf if port number 5 rf inportb PORTADD 0x02 amp Ox20 0x20 else rf inporto PORTADD 0x0D amp 0x01 0x01 return rf void Crcl16 unsigned int data unsigned int i Crc Crc data amp OxOOFF for i 0 i lt 7 i H if if Crc amp Ox0001 0x0001 Crc Crc gt gt 1 0xA 001 0x0001 multi nominal expression else Crc Crc gt gt 1 GPC 300 card Setting 8255chip setting
36. Run mode If F0 14 i during running there are any syntax errors the CPU is stopped F0 15 Buin col a the CPU is in the Run state Off when stopped or on Word register F1 F1 0 to F1 15 Only a bit process is available Address unction iption Maintain On state for first single scan period when the CPU FLO First single scan shanges its status stop to Run Cycle On Off state for each scan during the program oa 1Scan On 1Scan Off 10 ms On 10 ms Off 0 02 second clock 10ms 10ms 50 ms On 50 ms Off 0 1 second clock 50ms 50mS 50ms 500 ms On 500 ms Off m_m F14 1 second clock 500mS 500mS 500mS FL5 Ne neneots On when power is off for 20 ms or more Maintained Interrupt FL6 ee anid On when the CPU is in the run state status FL7 SE oe On when the K retentive data is destroyed and or changed error display F18 Carry flag On in the event of carry when performing math instruction FL9 On when the denominator of division commands is zero by zero error F110 Range pee D On when the absolute address exceeds the specified range F112 u eee System use area indication eJ The 16 bits in the F1 address provide the CPU s special function and self diagnosis result They are used for status contacts only and are not used to modify or control the PLC Only the FL5 instantaneous interrupt display contact should be used as an output contact by the user to be turned off after power loss indication Word
37. Then turn the power on or put the mode conversion switch in Prog and press the Initialize Key to clear the error Allowed Functions in Operation Modes tx On lashing Off REMOTE When the PROG LED Is on you can change the user program The INITIALIZE switch clears errors when the mode switch is set to PROG When the mode switch is set to REMOTE and power is switched from Off to On the previous mode of operation is restored When debugging the user program the mode switch should be set to REMOTE Processor Processing Procedure Program processing procedure The diagram indicates the PLC program processing procedure The CPU regularly repeats procedure 1 through 5 This cycle is called 1 scan time e Program analysis Executes the program from its first step to its final step and stores the internal external output in the working RAM e Peripheral device signal processing Stores data from the communication module or peripheral device to the internal memory e Forced I O processing Turns on off forced 1 0 bits if any e I O processing Preserves the On Off state of the external I O and uses it as an input in the next scan For accurate processing input should continue for more than 1 scan time The processed program outputs are sent from internal memory to the external memory e Watchdog time initialization The watchdog elapsed time value is set to 0 This value is the watchdog calcul
38. Uses the communication card that is connected and sets the environment according to the PLC communication specifications so that communication is possible CPU ID Input PLC ID 0 to 255 Reads the register value for the M area MO to M127 Stores the value for the M area in the K area KO to K127 RR Request Response request function Sends data to the communication port Reads the received data from the communication port Outputs the data when a Send event occurs Inputs the data when a Receiver event occurs CRC calculation Encodes the communication data in the byte stream Any completed communication function will be attached to the latest frame or will be compared with the attached CRC to check for data errors Note The CRC method can be implemented in several ways within the rule specified as shown in the left code void J ob void Communication sequence function J oblD 0 Change to sending mode for serial port J obID 0 to 4 handle Q and QA frames J obID 1 Transmit sending frame _ J obID 2 Change to receiving mode for serial port POR re re angle ane ames J obID 8 Address polling of ACK from CPU J obID 4 Receive ACK from CPU J oblD Change to sending mode for serial port J ob ID 6 Transmit RR Frame J oblD 7 Change to receiving mode for serial port J obID 8 Address polling of RES from CPU J obID 9 Receive RES from CPU
39. absolute address method for reading memory locations Refer to Absolute Addressing on Chapter 3 Please contact our technical support for more information about reading writing program or other function codes Query which dictionary meaning is question ask or question mark means that a user or an application program requests any specific information to a corresponding part when it is used as a communication term Detailed description No detailed description Cyclic Redundancy Checking CRC The CRC is a 2 byte checksum code attached to the end of the message by the sender to check if the communication frame Is transmitted without error The sender calculates the CRC when it sends one byte message and the receiver should also calculate the CRC from the data of the message Since this CRC calculation takes a long time when writing a communication program you should find any ways to increase the speed of this part to avoid errors and improve the communication speed CRC calculation range Ve y CRC calculation range CRC 16 calculation subroutine written in BASIC CRC_Sum CRC 16 reserve code after the calculation CRC content to be sent at the end of message Data CRC 16 data input to be calculated byte data from message 1000 CRC Sum CRC Sum XOR Data 1010 FOR I to 8 1020 CARRY CRC Sum AND 1 1030 RC Sum CRC_Sum SHR 1 1040 IF CARRY l THEN CRC Sum XOR OAOOIH 1050 NEXT I 1060 RETURN CRC 16 calc
40. acity of the power supply module e 5V power is supplied from the power supply module mounted on the same backplane e The 24V control power is used for supplying a dc power to I O module e Do not connect this 24V control power with other commercial power supplies in parallel It may cause error or product malfunction e A 250V 1A fuse is used for AC power The fuse is built into the power supply module e Be careful that the 24V side on the external terminal does not exceed the current capacity It may cause system errors e NX70 POWER1 and NX70 POWER2 modules do not guarantee protection against momentary power failure at 110V ac O Modules 16 point type 16 point type 32 point type a Type A Type B 32 point type Hardware features 1 0 status LEDs Displays the on off state of I O points Terminal block 20 points Used for inputs outputs and power supply wirings You can use M3 5 compressed screws for wiring For more information refer to Terminal Block Type Module Wiring on Chapter 4 Two 20 pin connectors 32 points Used as connectors for input output contacts and power supply wirings Use a flat cable or pin type harness For more information refer to Connector Type Module Wiring on Chapter 4 Terminal block cover Input module specifications Photocoupler 12 to 24V dc 24V dc Response 2 ms or less time 2 ms or less Common method 8 points per COM Status display
41. and stores and displays the present time Data is stored in BCD format O bit 0 X bit change SR290 SR291 Year month x x x x x x x o o o x x x x x SR292 Second 00 O Oo x x x x x x 0 0 010 0 01010 SR293 Hour minute Oo x x x x x x o o o o o o o o SR294 Date day Oo Oo x x x x x x o 0 0 0 0 x x x Time SR295 Year month O x x x x x x x ofo o x x x x x setting SR296 Second 00 0 0 x x x x x x o 0 0 0 0 0 0 0 SR297 Hour minute oO x x x x x x o 0 0 0 0 0 0 0 Usable for NX 70 CPU 70p2 module only 2 agree i it Current po o x x x x x xfololofolo x x x time In SR289 the year can be read in a 4 digit BCD Ex 1998 1998 2000 2000 SR289 to SR297 for clock functions are shown in BCD so it is convenient to confirm in HEX Set the range as follows Year 00 to 99 Month O1 to 12 Day 01 to 31 Day of Week 01 to 07 Sun to Sat Hour 00 to 23 Minute 00 to 59 Second 00 to 59 L Ladder setting method For example current date and time are Tuesday March 21 1996 18 35 07 QLET Q wW2854 960a2103 2 When changing the year month date or day new data is input in SR295 SR294 then the F12 14 bit is turned On The F12 10 bit is kept Off 3 When changing the hour minute and second new data is input in SR297 SR296 then the F12 14 bit is turned on If th
42. ation Uses the communication function code 4 writing N consecutive words to receiving_framel 4 0x80 BASE KO00 0180 LOW store the specified value in the K064 to K127 word receiving_frame 5 1 BASE HIGH Note oise Absolute address of K64 0x0180 receiving_frame i 2 6 lower_byte K i 64 receiving_frame i 2 7 upper_byte K i 64 if communication 0 printf WRITE K0064 K0127 OK n else printf communication error n NX70 Series Controller OE M OE Max Controls CONTROLS Trademarks not belonging to OE MAX Controls are www oemax com property of their respective companies Publication NX 70 UMOO1A EN P 2004 12 Copyright 2004 OE Max Controls
43. ation point until the next scan The following illustration shows the difference between the relay board and PLC sequence processing The relay carries out all sequences simultaneously while the PLC processes sequentially throughout the program LS LS Processing of relay sequence Processing of PLC program Parallel process Serial process Installation and Wiring Installation Installation space and environment External dimensions mm Unit mm Installation location Be sure to maintain a sufficient distance from wiring ducts and other machines below and above the module for proper ventilation Do not install the modules stacked up or horizontally Doing so will prevent proper cooling of the module and cause overheating inside the PLC programmable controller Do not install the module above devices which generate heat such as heaters transistors or large scale resistors In order to eliminate any effects from noise emission power wires and electromagnetic devices should be kept at least 100 mm away from the surfaces of the module When installing the module behind the doors of the operation panel be especially careful to maintain these distances Space for programming tool connection Leave a space of at least 180 mm from the mounting surface for programming tool connections and wiring Approx 110mm Programming Cable Approx 180mm Avoid installing the module in the following
44. cssssececeeseeeeceeeeeeecesecesseaaseeeeseaeeeesssaeeeessages 24 ONO GUNES 2 ne anima Lennon 26 3 Addressing Overview ss 37 Doubl Word AdaresSiInNdihss anneau a 39 ADSOIULE AGOGESSING niian naa eae 40 WO AGOrESSING nn tte eae a wom 41 Special Registe S anan a a a eo tatarentnss mane 43 Timer Counter Al Cains fstcaisreraterecndietintistpearnatntia entra aens 50 Processor Operation Mode r E 54 Processor Processing Procedure cccsssccecessseecceeseeeeceeueeeseeseeesseaaeesssages 55 4 Installations sass see soessee se oseacadsasae ce socecdartecueseuceceies 57 Power Supply Module Wiring ss 59 IApUT ANA OUED UT VVC iis ann Spa ee mines armenian 61 Terminal Block Type Module Wiring 68 Connector Type Module Wiring 69 Salety MeGaSUlCS i ann a roi ane 73 NX 70 Processor Module Communications Specifications 74 EEPROM Backup for NX70 CPU 70p1 NX 70 CPU 70p2 75 5 Test Run and Troubleshooting 77 T SCR un Pr CaUtIONS sens aan do nu anni 77 WESE RUM PE OCT ane nn een en sa aan 78 T SCRUMEONW CAMS nana annaba 79 Inspection and Maintenance es s sesssesssrrressrrrresrrrrerrrrrsrnrersrnrrerrrrresrreent 85 6 Programming Instructions 89 Basic Sequence Instructions inner 89 Timer Counter and Shift Register Instructions ccccccsssseeeesseeeeeeeeeees 90 COMPATISONIASMUCHONS SE Len sn nie ia 91 Substitution Increment
45. d instruction is beyond the specified range or if it designates a module which is not installed On if a word number in the refresh instruction INPR OUTR is beyond the specified range or if it designates a module which is not installed 4 On if an undefined instruction exists On in event of a user program memory writing error En On in event of miscellaneous errors 1 1 1 On if the user program memory is abnormal On if an error on external I O address and bit word double word numbers used occurs For example the first slot is set with an input module and OUT ROOOO1 is designated On if the label numbers of the J MP or CALL instructions exceed 63 the corresponding instruction LBL or SBR does not exist and or the corresponding LBL SBR instructions exist prior to J MP CALL instructions On if the label number of the LBL instruction exceeds 63 and or is duplicated 11 On if the J MPS MP instructions are mistakenly combined and or used On if SBR RET instructions are not combined and or used and or the SBR instructions overlap or exceed 63 On if NT RETI instructions are not combined and or used and or more than two sets of INT instructions are used Es On if no END instruction inserted automatically 1 0 gt On if the FOR NEXT instructions are mistakenly combined and or used more than four times Loop 3 4 15 Real time clock registers SR289 to SR297 W2849 to W2857 Sets the time of the built in clock RTC
46. de when the two values match and proceeds on to the next sequence J oblD 10 Notifies the successful sending and receiving If the frames that were sent have no response within 3 seconds assumes it failed communication and retransfers the data The time from the sending and receiving is counted using the watchdog timer Resets the watchdog time when a retransfer is being made No response after 3 transmissions indicates a communication error Normal return value 0 Abnormal return value 1 Reading function of the M register Uses the communication function code 3 reading N consecutive words to read the M area Note Sending frame 4 The lower byte of the absolute address of the words to be read Sending frame 5 The upper byte of the absolute address of the word to be read Absolute address of MO 0x0CO Note Sending frame 6 The number of words to be read Sends a function code requesting to read the M area and stores the received data in the buffer Writing Function of the K Register Uses the communication function code 4 writing N consecutive words to store the specified value in the K000 to K063 word Note Absolute address of KO 0x0140 iflcommunication 0 printf WRITE KO000 K0063 OK n else printf communication error n receiving _ framef 2 4 EXAMPLE write WORD K064 K0127 Writing function of the K Register receiving_frame 3 130 Number Of Byte For Inform
47. digits 000 to 127 are used When used as a word number only it is expressed in 4 digits 0000 to 3071 and increases as a decimal module and omits the bit number Address type Depending on the type of the address it is distinguished into R L M K F or W The W area contains data area W0000 to W2047 timer set value area W2048 to W2303 SV000 to SV255 timer present value area W2304 to W2559 PVO00 to PV255 and special register W2560 to W3071 SROOO to SR511 Double Word Addressing Double word addressing is same with word addressing except that 32 bit data is referenced by the specified address and its next address The type of instruction used determines which addressing word or double word addressing is applied For comparison instructions the programmer must be in Double Mode to enter a double word comparison For other instructions those instructions that start with a D in front of the related word instruction are double word instructions and the data is processed as double words Example 1 an WO is processed as 16 bit 1 word data D W0 0 to 65 355 S 000 S is processed from 0 to 65 535 DLET Double D W0 Double word WO is composed of WO and WL WO is LSB W1 is located in MSB 5 0000 W0000 is W0001 WO0000 The value of D or S of the instruction can process data from 0 to 4 294 967295 Example 2 Absolute Addressing In LDR DLDR STO and DSTO instruct
48. e allows you to connect directly to computers or touch panels and exchange a high volume of data at high speed The COM 2 port Supports a simple user defined communication and allows you to connect to barcode readers inverters or servo motors Binary communication is available 2 Slot Type a km Bi j NX70 BASE02 32 Points 16 point I O 64 Points 32 point I O 8 Slot Type NX70 BASE02 128 Points 16 point I O 256 Points 32 point I O 12 Slot Type 3 Slot Type 5 Slot Type 6 Slot Type l J NX70 BASE02 NX70 BASE02 48 Points 16 point I O 80 Points 16 point I O 96 Points 16 point I O 96 Points 32 point I O 160 Points 32 point 1 0 192 Points 32 point I O 10 Slot Type TA NX 70 BASE02 160 Points 16 point I O 320 Points 32 point I O NX 70 BASE12 192 Points 16 point I O 384 Points 32 point I O Basic configurations and I O Flexible system configuration 7 types of backplane 2 3 5 6 8 10 and 12 slot The NX70 PLC has 7 types of backplane 2 3 5 6 8 10 and 12 slot type providing you with very flexible 1 0 configuration All backplane I O power supply and specialty modules are available regardless of processor type Maximum 384 I O points With 12 slot NX 70 PLC you can use up to 384 I O points using 32 point module With terminal block type up to 192 points are available using 16 point module The backplane may have to
49. e content Addressing space is classified as R L M K F TC and W These letters are used to designate a specific area in memory as shown in the following table Local 1 0 memory area that can be set when configuring RO O to R12715 I O module e Remote 1 0 memory area NAME e 2048 points 128 words e Link contact sharing memory area 1024 points Loop 0 Link contact L D e Internal contact can be used when you do not use the link M 0 0 to M63 15 e Link contact sharing memory area 1024 points Loop 1 e Internal auxiliary contact memory area Internal contact M M 0 0 to M12715 e 2048 points 128 words e Retentive internal auxiliary contact memory area Keep contact K K0 0 to K12715 e 2048 points 128 words e Cleared when downloading a program e Special internal contact memory area Special contact F FO 0 to F15 15 e 256 points 16 words A2 h ti t TC000 to TC255 56 channels common use timer counter Timer Counter TC SV000 to SV255 iy l iene l PV000 to PV255 IS Set Value IS Present Value e SV can hold values from 0 to 65535 e Area that retains the data in case of power failure Data register W WO to W2047 e Bits are not addressable e Cleared when downloading program Special register W 3072 to W5119 seen SR SR000 to SR511 Special internal data area for CPU status and RTC The R L M K F and TC areas can be used for both bit and word addressing The W area can be used to process word
50. e ee ee LED is illuminated current eplace the external loa One or more outputs on an O module will not turn Off LED is not Defective output circuit Replace the output module illuminated Low external input voltage Supply rated load power Output changes On Off state i Noise error Countermeasure against noise erratically Loose terminal screw or defective Tighten the screw and reconnect contact the module Tighten the screw and reconnect Loose common terminal screw the module A set of 8 points on an I O module l Tighten the screw and reconnect operate incorrectly or identically Defective terminal connector ine module CPU module error Replace the CPU module HQE oe CEDIS MOI LED error Replace the output module illuminated Periodic inspection and maintenance items The NX70 series controllers require periodic inspection and maintenance for proper operation The following items should be checked every six months but the period can be shortened according to the operational environment Does the voltage measured within the Voltage must be within the Supplied power power terminal fall within the specified power module input voltage Voltmeter range specifications Does the temperature fall within the 0 to 55 C He specified range Environment Does the humidity fall within the 35 to 85 RH Hygrometer specified range Control voltage must be I O power ont va tage SUPPE Que u within the input and output Voltm
51. e limited depending on the particular module type Check the specifications of each input module and be cautious when the ambient temperature is high e The input device connection methods are shown in the following graphics for the various types of input devices Connection methods for photoelectric sensor and proximity sensor Relay output type Two Wire Type Sensor Output Terminal Power supply Power supply Power supply for Input for sensor for Input NPN open collector output type PNP open collector output type Terminal COM Terminal Power supply Power supply for Input for Input Voltage output type Terminal Terminal Power supply for Input Connection to AC input module Contact output type Non contact output type Input Input Terminal Terminal Terminal Terminal Precaution when using a LED reed switch With a LED is connected to an input contact such as LED equipped reed switch make sure that the voltage value applied to the input terminal of PLC is greater than on voltage value In particular take care when connecting several switches in a series LED equipped reed switch ON voltage Terminal value or more Terminal Power supply for Input Precautions when using a 2 wire sensor If the input of the PLC is not turned off because of current leakage from the two wire type sensor the connection of a bleeder resistor is recommended as shown below 12 to 24V dc type input
52. e new data is not set correctly the F12 10 bit turns on 4 The display date and set value are expressed in BCD so itis convenient to input as hex 5 The year month and day are automatically changed Timer Counter Area Timer counter set value and present value addresses Present Present Present value value value PV o w2045 w2304 40 w208s w2344 s w228 w284 a w2052 wz 44 w2092 w28 ea w232 W23 6 wa0sa w20 w2094 w2350 86 w234 W230 e w2056 wa 48 w2096 W2352 o w2057 wB w2097 w233 _ amp w237 W33 o was waa oa w w2308 o wa w200 SE we wao o waia7_ wao o wao W2364 ea wn w2368_ 6 wa W2370 ES wne w2372 e w waz M If you change the above registers while the program is running or program them incorrectly errors or damage may occur Be sure you understand the programming procedures of the timer counter thoroughly Present value Present Present value at Ma Channel The inherent number of the timer and the counter numbers that are equivalent to 000 of TCO00 e Set Value SV The designated value for the timer to turn On and the counter number of times On to start operation e Present Value PV Current processing value of the timer elapsed time and the counter number of counts Address register Address refers to the location of memory being used It can refer to
53. ected On when the I O module information that is stored in the Module type error CPU and module that is installed are different types the error lamp is turned on Operation stops pouc data control Off when the running CPU input module s data is not j updated Input update is turned Off Off to suspend updating of the output modules while the Output data CPU is in the Run state Output update is turned Off The control outputs are maintained in their last valid state prior to update being disabled Turns all outputs off while CPU is in the Run state FO AO NPULON Outputs are disabled On when the constant cycle interrupt instructions are used Constant cycle i terrin Refer to the INT instructions p The cycle time is defined by the user When the power is applied the system self checks the System check ROM Should any fault exist the error lamp is turned on Output and operation are halted D If the user program memory is damaged or the program is The CPU initially runs and checks the user program s Program syntax syntax In the case of an error the error lamp is turned on error Output and operation are halted F0 12 Watchdog error On when a scan time exceeds the watchdog set time F0 13 Disable module On when the CPU starts the initial Run and the program is type checking checked without performing 1 0 module type verification Program changes On when a user corrects the program while in
54. ed If Ax denotes a bit address the Dx data is 1 byte On FF Off 00 and if Ax denotes a word address the Dx data is 1 word 2 bytes The size and location of the returned data depends on the combination of bit word addresses requested The Lx parameter Should be checked to verify data size Read the bits and or word contents of the assigned absolute addresses Can read bits and words regardless of their order and location in memory Query Q frame AO Al CRC wa Ps FO 7 Juin Method of assigning bit word Assigning absolute addresses for bits absolute address Absolute address for the K127 12 bit 15 14 13 0 1BFC Ax 0001 1011 1111 1010 ne Absolute Address Bit Word assigning absolute addresses for word O O Absoulte bit address The absolute address for the K127 word O 1 Absoulte word address 01BF 1 X Notused AX 0100 0001 1011 1111 Ax A0 Al An Dx D0 D1 Dn When structuring the outgoing frame be aware that the Dx of the Q changes according to the bit word Ax type and the L information length changes as well The Dx will be either 1 or 2 bytes If Ax denotes a bit address the Dx data is 1 byte On FF Off 00 and if Ax denotes a word address the Dx is 1 word 2 bytes Response R frame Fixed Communication Program Examples Users can write a communication program by using the following example For more information contact the sales or technical department lt PLC com
55. ernal circuit and external wiring diagram NX 70 Y 16R Without varistor NX 70 Y 16RV With varistor NX70 Y8R a eo Q Pereretal Pororere RE 000 F EES 250V ac I I 30Vdc li TE 11 Lj N lt Response 1 ms or less time 1 ms or less Internal circuit and external wiring diagram 12 24V DC POOLOOE O HO 0 081810 12 to 24V dc Internal current consumption 140 mA or less at 5V Surge absorber Zener Diode ET ES Internal circuit and external wiring diagram The numbers in the picture below 1 to 20 indicate the numbers printed on the front of a product i s ee ee m e The I and ll connectors are positioned in opposite directions Please use caution prior to connecting e For external connections of the connector please purchase cable harness NX70 CBLDC and Pin Type Ass y NX PIN20 For more information regarding the wiring methods refer to Connector Type Module Wiring on Chapter 4 e When wiring NX70 Y32P please be cautious that the pins in the diagram picture and below are different Pin 17 18 VDC Pin 19 20 COM VDC 4 Response 1 ms or less time 0 5 cycle 1 ms or less Internal circuit and external wiring diagram Vec ie Sano s Eee AE LG OS 0 5 me ampa LA x ER T s Fuse gu D a O p AC100 240V o Catalog Catalognumber NX70 XY16 ME LL L
56. eter O modules fall within the specified limit Di modules specifications Module Are all modules firmly mounted mounting and Is the connection cable firmly wired All should be firmly secured Screwdriver Nes Is the external wiring screw tight Contactrela Electric lifetime Life expectancy y 100 000 to 300 000 operations of parts Precautions when troubleshooting e Always turn off the power whenever installing or removing modules e Check the module once more before replacing the defective part e Return the defective module for repair with any detailed information about its problems When a contact is defective clean the contact with a clean cotton and alcohol and then retest the module e Do not use thinner to clean since it might cause discoloration on the module s case Programming Instructions IMPORTANT Refer to the NX7 NX 70 Instruction Set Reference Manual for detailed information on the NX7 and NX70 instruction set and for application examples to show the instruction set in use Basic Sequence Instructions on o eE NC TC OS PC ome CT SE he i OR DFN Or Dif Not Falling edge parallel connection And Block E HE T Circuit blocks series connection ORB Or Block m F Circuit blocks parallel connection A ORB KK Starts master block te ss MS for processor version 2 0 or higher Ends master block Master block Reset FM for processor version 2 0 or higher
57. first of all figure out the problems thoroughly Check if the problems can be reproduced and analyze the relevance to other devices Then refer to the system check flow chart E Syatem check flow chart 4 2 gt Go to the Run check flow chat 1 Yes ie Power check flow chart Power supply LED is not illuminated Run check flow chart Run LED is not illuminated Yes On normal us DT Yes gt No se ems Gui nl lt lt Yes Error check flow chart ERROR LED is illuminated Troubleshooting Troubleshooting Troubleshooting Abnormal 1 Troubleshooting Troubleshootin Normal 0 g Troubleshooting Troubleshooting Troubleshooting Normal 0 Abnormal 1 FO 7 1 Troubleshooting Abnormal 1 Normal 0 Normal 0 l Yes Abnormal 1 O check flow chart RO 2 RO 2 RO 2 This page presents an example of a ouT troubleshooting procedure based RO 15 on the right circuit Loose Defective External environment check flow chart Check the external environment No Yes Inspection and Maintenance Inspection and maintenance POWET PUPPY EEE WIKNO Fuse blows Replace the fuse illuminate Fuse blows frequently Short circuit or defective part Replace the power supply or the CPU module ere Correct the program Run LED will n
58. he program stored in RAM using battery power Starts EEPROM backup or operates EEPROM backup at WinGPC Backup using WinGPC How to backup using WinGPC Connect Online Save the completed program onto the PLC Download WinGPC gt PLC Select the EEPROM Backup E in the Online menu Test Run and Troubleshooting Test Run Precautions Before installing the I O wiring of the PLC and supplying power check the following items e Check if the wiring is secured The connection of Check if the terminal screws are tightened the power cable Check if the parts of connectors are properly joined and the e Check if the I O modules are firmly fixed I O cables e Check if the power cable is securely connected e Check if the cable size is correct coundi e Check if the grounding is triple grounded and g separate from other device grounds e Check if the battery is installed into holder on the CPU module e Check if the battery connector is connected to the CPU board e Check if the emergency stop circuit for problems external to the PLC is wired accurately and will immediately disconnect power on demand Emergency stop circuit e Check if the power and voltage sources are within specifications For 110V ac 90 to 132V ac Power source For 220V ac 180 to 264V ac e Check if the power to the AC input module is within specifications Test Run Procedure When the PLC has bee
59. hen the power Is supplied Power fuse holder Terminal block Terminal block for power wiring You can use M3 5 compressed screws for wiring Power input terminal Input terminal for 10V to 240V ac free voltage However NX70 PWRDC supplies 24V dc input power only Frame ground FG terminal As a grounding terminal it is connected to the metal parts of the backplane Use class 3 grounding to avoid electrical shock Power output terminal 24V dc Use this terminal when you need to supply 24V dc power to an I O module Nasa Do not connect this power output terminal with other commercial power supplies in parallel It may cause error or product malfunction Specifications Cat y number NX70 POWER g WER1 NX70 F R2 110 to 220V ac free voltage a Rated output current 0 3A at 24V Not applicable atalas me Re ataiog numper Catal po NXTO PWRDG Ratedinputvoltage Rated input voltage _ O 2Wdce Wet The power supply module supplies 5V power to all modules mounted onto the backplane Therefore make sure that the current consumption of each module which can use 5V power and or 24V service power does not exceed the rated range NX70 POWER1 and NX70 POWER2 modules do not ATTENTION guarantee protection against momentary power failure A at 110V ac ATTENTION Make sure that total current consumption of all modules mounted on the backplane does not exceed A the rated current cap
60. ind that the scan time will Increase as you increase the number of inputs and outputs and or the size of the program Edge An edge is defined as the point when an input changes state For example a rising edge occurs during the very first scan after the input has changed from Off to On A falling edge occurs after the input has changed from On to Off BCD Binary Coded Decimal BCD is used to express a decimal digit 0 to 9 using 4 bits Conversion of BCD values can be done in hexadecimal calculations Example 59 BCD 59 HEX 32 BCD 32 HEX Flash ROM It refers to a ROM EEPROM that stores programs Since its contents can be deleted periodically it is frequently used for equipments that deals with programs such as a PLC How to use a register e R Relay register Can be bit word or double word Indicates the external I O register that directly connects to the general 1 0 module e M Memory register Can be bit word or double word An internal bit memory address which supports the relay of logical operations It is used as a word or double word variable for general calculations and programs When the power of the PLC is turned off or the CPU has stopped the register value is reset to 0 e W Word register Can be bit word or double word Same usage as M registers The value is preserved after the power is turned off but can be cleared by program downloads or special command words oJI Not used as a bit
61. information SR49 to SR79 Slotinformation Stores slot information for installed 1 0 modules SR261 to Remote control SR279 domain Contains remote I O configuration data RTC Contains real time clock information year month day hour minute second date SR289 to SR297 SR298 to User defined For port COM2 communication SR018 Indicates the location of the instruction the step number that caused an undefined instruction error during program execution SR019 SR020 SR021 SR022 SR023 to SR027 SR028 to SR029 SR373 Ses User defined communication area SR374 to SR379 SR380 to SR511 Link Se Link error information data information Applied when using communication modules SR30 Program syntax error status register SR30 W2590 Indicates the result of the automatic check on the user program syntax when the programmer or GPC executes a syntax check and when the operation mode is switched from the Stop state to the Run state If the value of W2590 is not zero F004 bit turns On The error lamp also turns On Error correction method Find the error in the CPU online mode and then correct the program On if the 1 0 number range of bit process instruction is beyond the specified range or designates an external contact output module which is not installed On if the channel number of the timer or the counter exceeds 255 or is duplicated On if the bit or word number in the advance
62. input voltage Supply rated input voltage Input changes On Off state Troubleshoot for noise erratically Loose terminal screw or defective Tighten the screw and reconnect contact the module Input display LED will not illuminate input is On in PLC LED error Replace the input module Output module No external input power Supply power Low external input voltage Supply rated load power No outputs on an output module Loose terminal screw or defective Tighten the screw and reconnect will turn On contact the module Defective I O connector contacts Replace the output module Defective output circuit Reconnect the output module ae CURE ONAN OUTPUE MIOOUE Defective output circuit Replace the output module will turn Off One or more inputs on an I O Output time too short Correct the program module will not change to On state LED is illuminated Defective output circuit Replace the output module Incorrect output load Replace the output load Short output wiring Reconnect the output wiring One OF bate np op ar yO Loose terminal screw or defective Tighten screw and reconnect the module will not change to On state l contact module LED is not illuminated Defective output contact Replace the output module or relay Defective output circuit Replace the output module One or more outputs on an I O Defective output circuit Replace the output module or relay module will not change to On state Error caused by leak or residual er
63. ints 32 points Example of addressing for the system shown above number Word R5 to R9 to R11 to R13 to R7 0 R1L0 R9 0 CPU R9 1 Bit module address I O addressing guidelines The processor automatically distinguishes input address from output address for each module mounted A word address is allocated to a 16 point input or output module For a 32 point mixed I O module 2 word addresses are allocated a word address for inputs and another for outputs For the 16 point mixed 1 0 module 2 word addresses are allocated but only the lower 8 bits 0 to 7 of each word address can be used The modules mounted into the slots that are closer to the processor module have lower addresses An empty slot means no module is mounted and a blank module NX DUMMY may be installed Occupied I O points for each module NX70 X16D 16 points NX70 X16D1 16 points NX 70 X32D 32 points NX70 X32D1 32 points NX 70 X16A 110 16 points NX 70 X16A 220 16 points NX70 Y8R 8 points NX70 Y 16R 16 points NX 70 Y 16RV 16 points Output module NX70 Y 16T 16 points NX 70 Y 32T 32 points NX 70 Y 32P 32 points NX70 Y 16SSR 16 points l NX70 XY16 32 points Mixed 1 0 modul NX70 XY32 MW link module NX70 MWLINK SCU module NX70 SCU A D module 4 channels eae 64 points or 16 points NX 70 Al4C j p NX70 AO2V 32 points or 16 points D A module 2 channels P P NX 70 AO2C 32 points or 16 points Input module NX 70 AO4C 64 points or 16 points
64. ions an absolute address is used to indirectly reference a register or to utilize the builtin communication port External Special I O Internal contact Link area 514 Data area SV000 2560 0A00 SV001 2561 OAO1 Internal a a EU SV255 2815 OAFF PVOOO 2816 OBOO 319 T C PVOOI 2817 OBO1 PV255 3071 OBFF Oe ajm Internal Keep 323 SROOO 3072 OCOO contact SR511 3583 ODFF An absolute bit address which is often used in communication consists of an absolute word address and a bit number 0 to 15 represented as 0 to F as shown below 15 4 3 0 absolute bit address absolute word address For example the absolute bit address for internal contact K12712 is 1BFC hex 1BFC absolute word address 01BF bit number C I O Addressing Addressing is based on the location of the module Empty slot Example 1 8 slot system Slot number 0 1 2 ce 4 5 ee F i T T EE ad a da nput Input gup output Input Input Output ut ai al points 32 points 16 points 16 points 16 points 32 points 32poin0ts 3 Example of addressing for the system shown above Eu number Word R3 to R4 R5 to R6 R7toR8 R9 to R10 address 7 0 Processor i R Bit module address Example 2 10 slot system Slot number 0 1 2 3 4 ut Output Output Input nput Output Output Input Input In d Fe i 32 points 32 points 32 points 32 points Input 16 points 16 points 16 points 16 points 16 po
65. itin S in D 15 8 76543210 ENCO Encode sLo oof ht tofolofo 2 p _ ofofofofo 1 o 6 Note It is different than function of SPC series 2 1 Convert the low order 4 bit value of S to a power of 2 2 and store it in D DECO Decode apamat D o o ofo i o ofofo o 158765433210 Converts the low order 4 bit value of S to 7 segment display pattern and store them in D SEG 7 Segment 5 m s o ofofofo fof tfo D norong ef 1e gfedcba Exchange D1 and D2 values ca Exchange D1 Jo folk g1 Jofof4 p2 Jolof1 17 p2 Jo o 1 Separate S into N 1 units 4 bits each and store them in the low 4 bits of words Starting at D When DIS Dissemble 5 7325 PELLE D OOo 5 When oforo D 4 0 0 0 0 1 1 N 3 odo ophi Combine the low 4 bits of S 1 words starting at S and store them in D N 0 to 3 UNI Unify When EE ER N5 s 0 0 0 0f1 1 s 4 0 ofon D 7325 0 1 1 1 0 0 1 folo 400 1 0 1 BCD DBCD BCD Conversion DBIN Binary Conversion om tk ot N Z Bit Conversion Instructions Complement Carry BNOT Set N bit of D to L D o oftfofo 1fofo When N 15 A 1 N 0 15 Reset N bit of D to 0 D 0 1 0 1 0 1 0 0 WhenN 3 F Invert Nt bit of D D L O 4 1 1 Jo 1 o o 1 When N 4 D ee EET Store the value of N bit of D to F18 D lolio ojo WhenN 6 LR Store the number of bits in S thatare 1 to D s 0 0 0 1 4 0 4 0f0 1
66. izes the variables 2 Using the communication function codes reads the data of the M field reads the word values of the MO to M127 word area The K registers are the retentive registers 3 Uses the communication code to read the data of the K area 4 Compares the values of the M area and the values of the K area and indicates OK when the values are the same Beginning of the main program Select the port of the peripheral device for the communication Serial 9 pins 25 pins Parallel GPU 300 parallel port Select board rate 9600 bps max 4800 bps 2400 bps Set the communication environment delay time for the selected ports Note GPC 300 card port address 0x0300 Initialization of GPC card if port number 1 PORTADD 0x3F0 if port number 2 PORTADD 0x2F0 if port number gt 3 amp amp port number lt 5 PORTADD 0x300 outportb 0x303 0xC0 Mode 2 of 8255 outportb 0x303 0x05 PC2 1 of 8255 Disable IRQ2 outportb 0x301 0xFF PBO 1 of 8255 Sending Enable RS 485 outportb 0x303 0x01 PCO 1 of 8255 Serial Input Enable if port_number 3 outportb 0x303 0x02 PC1 0 of 8255 Select RS 232 if port number 4 outportb 0x303 0x03 PC1 1 of 8255 Select RS 485 if port_number 5 outportb 0x303 0x00 PCO 0 of 8255 Disable Seriallnput else outportb PORTADD 0x09 inportb PORTADD 0x09 amp 0xF0 Disable Interrupt Initialization of USA
67. k words module 1 Comm port High speed counter 1 2CH NX70 CPU 70p2 High performance 20k words high speed counter 4CH Pulse output module 4CH MW link system 2 Comm ports AC Type 1 NX70 POWER1 110 220V free voltage 3 5A at 5V 0 3A at 24V 2 NX 70 POWER2 110 220V free voltage 4 0A at 5V DC Type 1 NX 70 PWRDC 24V dc Input 4 0A at 5V 8 point 8 point mixed type 16 point 16 point mixed type 8 point type 16 point type 32 point type Computer software WinGPC PC communication cable NX_CBLCPU2 NX_CBLCPU5 NX70 CPU 2 slot type 3 slot type 5 slot type 6 slot type 8 slot type 10 slot type 12 slot type Limitations on current consumption 5V power supply Internal 5V power is supplied to each module through backplane bus NX70 POWER1 3 5A NX70 PWRDC 24V power supply Input Output module capacity The power supply module supplies 24V Commercial 24V power supply power to each I O module limited Capacity Supplies 24V power to each I O module Coys Sul The 24V power that the power supply provides can be used for all input output modules that requires 24V However since there is a limitation on current capacity we recommend you purchase 24V power supplies separately according to your needs NX 70 POWERI1 0 3A at 24V NX 70 POWER2 No 24V output feyp 57 For 24V power source to input output module you can use either 24V power supply module or a commercial 24V po
68. le NX70 MWLINK NX70 DNS W Link function W mode e Functions PLC link 16 stations Computer link Data transmission 16 words per instruction Remote programming Using Total of 2 layers with 32 stations per layer twisted pair Transmission speed 0 5 Mbps cables Transmission distance total 800m Interface RS 485 multi drop DeviceNet slave module for NX70 PLC High speed photocoupler 125K250K 500Kbps Supported software SYCON NCS DN Operator interface and programming device e Writing PLC programs and checking PLC status ona computer Network check up I O mapping e NX7 PLC Programming oo and monitoring file managing e NX70 PLC device Windows and saving online editing error NX70 CPU 70p1 searching and time chart NX70 CPU 70p2 monitoring The current version of WinGPC for Windows is version 3 xx Windows 95 or higher CPU module communication cable CPU NX CBLCPU2 Refer to the communication For connecting to WinGPC communication pin cable NX CBLCPU5 specifications Input Output Harness DC 32 and 64 input points NX_7OCBLDC Harness length I O cable ASS Y 15m connector type type NX70 CBLTR TR 32 and 64 output points No of pine 26 pine connector harness For the connector NX 70 1 0 VO Connec f NX_PIN20 20 pins connector hood included type of NX70 N70 ASS Y connector type and N700 I O NX70 Product Dimensions System dimensions mm O SOL 4 M5
69. le Use shield cable eyes RS232C RS485 cable wiring diagram NX _ CBLCPU2 2m NX_CBLCPU5 5m NX_CBLCPU2 2M NX CBLCPU5 5M CPU module for NX70 Series RS 232C is available without connecting 485 485 Vcc signals 9 pin D Sub cable 9 pin D Sub cable Female Male Reference 25 pin to 9 pin wiring diagram e4 6 7 T IBM PC PLC 25 pin Female 9 pin Male EEPROM Backup for NX70 CPU70p1 NX70 CPU70p2 What s EEPROM backup EEPROM Electric Erase Programmable Read Only Memory can retain the data when the power is turned off and erase or record data when the power is turned on This function allows you to retain the PLC program when the power is turned off And it also erases an existing program and records a new one when correcting or storing a program after turning on the power Applicable models The types of EEPROM can be defined by its characteristics The CPUs for OE MAX NX70 NX70 CPU 70p1 and NX70 CPU 70p2 PLC use the flash memory This function is widely used since it is easy to use store and transfer data and is built in the NX70 PLC NX 70 CPU 70p2 EEPROM uses 29EE512 and has a minimum of 3000 times to write to flash memory It should be noted that the memory is to be changed when exceeding the use of over 3 000 times Procedure DIP switch ON Erases the contents of RAM and copy the programs stored in EEPROM onto RAM to operate DIP switch OFF Operates with t
70. me lag when a momentary power failure occurs e Abnormality in the PLC external power supply or other devices In order to prevent a malfunction resulting in system shutdown choose the adequate safety measures listed in the following Interlock circuits on the outside of PLC When a motor clockwise counter clockwise operation is controlled provide an interlock circuit that prevents clockwise and counter clockwise signals from inputting into the motor at the same time Emergency stop circuits on the outside of PLC Install the emergency stop circuits outside the PLC to stop the power supply of the output device Start PLC after other devices Start up sequence The PLC should be operated after all of the 1 0 devices and the power equipments are energized e Switch to RUN mode after the start of PLC e Useatimer circuit to delay the start of PLC Watchdog timer The watchdog timer is a program error and hardware error detection timer It goes On when the scan time exceeds 640 ms When the watchdog timer is activated at the same time the ALARM LED lights the ALARM contacts on the power supply module turn to On all output modules are turned Off and the module is put in halted state The system Is in a non processing state that includes communications with programming tools as well NX70 Processor Module Communications Specifications 38 400 19 200 9 600 4 800 bps DIP switch setting ES A Cable type Twisted pair cab
71. module Off voltage 2 5V input impedance 3 ko Input Terminal Bleeder resistance Leakage current of the sensor mA R Bleeder resistance kQ Terminal The off voltage of the input is 2 5V select an R value so that the voltage between the COM terminal and the input terminal will be less than 2 5V The input impedance is 3 ka Res R lt 7 The wattage W of the resistor is R Power voltage In the actual selection use a value that is 3 to 5 times the value of W Precautions when using a LED LIMIT switch With the LED equipped LIMIT switch if the input of the PLC is not turned off or if the LED of the LIMIT switch is kept on because of the leakage current the connection of a bleeder resistor is recommended as shown below For 12 to 24V dc input module Off voltage 2 5V input impedance 3 ko LED equipped limit switch Terminal Bleeder a resistor r Internal resistor of limit switch ka R Bleeder resistor k2 Terminal The off voltage of the input is 2 5V therefore when the power supply voltage is 24V select R so that the current will be greater than 24 2 5 r The resistance R of the bleeder resistor and the wattage of W of the resistor are as shown below In the actual selection use a value that is 3 to 5 times the value of W Power voltage W lt R Output wiring Check points e Simultaneous ON points or load current can be limited depending on the particular
72. munication sample code gt include lt stdio h gt include lt dos h gt include lt conio h gt define PC_ID OxE2 define time limit 28 define retrial_limit 2 define TRUE 1 define FALSE 0 define lower _byte x unsigned int x amp OxOOFF define upper_byte x unsigned int x amp OxFFOO gt gt 8 typedef int BOOL unsigned int PORTADD DIVISOR sending_delay receiving_delay unsigned int sending_frame 262 receiving_frame 262 unsigned int Crc unsigned int card i ix iy smode unsigned int port_number unsigned int PlcID OIdID BOOL Success unsigned int data obID retrialC unsigned int Old New receiving_Index_max sending_Index_max index watchdog unsigned int M 128 K 128 Example Register void RR_occurring void void Trsport unsigned int unsigned int Recport void BOOL sending_occuring void BOOL receiving _occuring void void Crc16 unsigned int void J ob void unsigned int communication void void Mword_reading void void Kword_writing void void main void unsigned int i Selection of communication port cirscr printf PORT COM1 1 COM 2 GPC 232 3 GPC 485 4 GPC Parallel 5 scanf d amp port_number if port number lt 1 port number gt 5 port number Selection of Baudrate for Serial communication sending_delay 10 if port number 5 printf GPC card BAUD RATE 9600 1 4800 2 2400 3 scanf
73. n installed and wired begin test run in the following order e Check if the input voltage of the power supply module is within specifications e Check if the power voltage for the 1 0 modules is within specifications SUPP APEWE Z Connect WinGPC to the CPU module Set the CPU module to the PROG mode e Turn on the power source e Check the LED display of the power supply module Initialize e Initialize the PLC using WinGPC This clears the program on memory the PLC e Check the LED of the input modules and use the monitor function of WinGPC or HHP after test run the input device e Check the wiring of the output by turning the output On Off using the monitor mode of WinGPC set CPU module to Run mode e Input the program instructions using WinGPC Programming Download the program from WinGPC into the CPU module if any e Set the mode switch of the CPU module to run Test run e Check if the Run LED is illuminated e Check the sequence operation e Check and correct any program errors program e Store the program onto a floppy disk or similar storage Store device such as HDD program e Print the program ladder mnemonic and store it in a secure place Check 1 0 wiring It is recommended to record the PLC types program capacity name of Installation and date for the recorded program Test Run Flow Charts System check flow chart When you encounter problems during startup or test run
74. ne communication network they must use individual ID numbers The PLC s network ID number is configured using the WinGPC Communication steps The NX CPU can support 2 step or 4 step communication methods The communication methods are easily distinguished each other by selecting and sending the function code of the Q frame Even for the 4 step method the 2 step method can be used for the repeated function This function sends and receives the only RR repeatedly when you want to redo the frame you sent with query allowing users to quickly monitor data e 2 step communication method This method allows users to easily and directly program communication since it only uses the simple Q gt R steps 2 step configuration Q step 1 R step 2 Repeated function code Q step 1 R step 2 RR step 1 gt R step 2 gt RR step 1 R step 2 e 4 step communication method Q QA gt RR gt R 2 step method can be used for the response to the repeated function code 4 step configuration Q step 1 QA step 2 RR step 3 R step 4 Repeated function code Q step 1 QA step 2 RR step 3 gt R step 4 gt RR step 1 R step 2 2 step communication method No communication error Peripheral device PLC When R is not received Peripheral device PLC Response to repeated function code Peripheral device PLC NAN AS 4 step communication method No communication
75. o connect with other devices e Use each pin for each socket e Use flat cable for harnessing Available for purchase Pin type connection This is used to connect to each socket using an individual pin The wiring will be described on the next page 20 pins I O connector assembly 1 Pin 20 ea Pin type 2 Connector hood 3 Sockets 32 point NX70 X 32D DC 32 input points 12 to 24V input module NX70 X32D1 DC 32 input points 24V 32 point NX70 Y32T TR 32 output points NPN output module NX70 Y32P TR 32 output points PNP Harness connection using flat cable connector The harness cable consists of a 20 pin flat cable connector and 20 separate compressed terminals at the end The cable is 15 min length Connect directly to the module to use NX70 CBLDC DC 32 input points Cable Connector harness cable 15 m eee NX70 CBLTR TR 32 output points Connector harness cable 15 m 32 point NX70 X32D DC 32 input points 12 to 24V input module NX70 X32D1 DC 32 input points 24V 32 point NX70 Y32T TR 32 output point NPN output module NX70 Y32P TR 32 output point PNP References product codes NX70 X16D NX70 X16D1 Input NX70 X32D module NX70 X32D1 NX70 X16A 110 NX70 X16A220 NX70 Y8R NX70 Y16R NX70 Y16RV Output NX70 Y 16T module NX70 Y 32T NX70 Y 32P NX70 Y16SSR Mixed I O NX 70 XY 16 module NX 70 XY 32 How to use pressure socket for pin type connection The wire end can be directly p
76. o the absolute address Can read n consecutive bits On Off Query Q frame Number of bits to be read Length of information byte Absolute bit address address of first bit to read Refer to 3 3 Absolute Addressing Ex K127 12 address K127 s 12 bit Absolute bit address 1BFC p Peripheral device ID PC ID BASE L FC H 1B gt PLD ID PC ID Function code 2 step Communication Response R frame Bits that are On are represented by the one byte value FF Bits that are Off have a value of 00 Vv Length of information number of bytes from the length to the next CRC Response code where 80 is added to the R Response Q to its 2 step communication function code PLD ID CPU ID For the response the PLC is the sender and the PLC the receiver so the DA and SA are gt Peripheral device ID PC ID reversed from the Q message Modify the contents of the bits stored in the absolute address R L M K F or TC Change the bit state between On Off Can change multiple consecutive bytes Query Q frame 2hj R pa sa 22 Base Base 0 Base 1 Base N 3bit CRC L H bit value bit value value L H To turn On the desired bit value from the base enter FF To change to Off enter 00 Absolute bit address starting address Refe
77. of these guides when installing the module to the backplane Install modules onto the backplane starting from the leftmost guide in the order of power supply module processor module and I O and or specialty modules Module installation holes Use these holes to secure the modules to the backplane Use the screw supplied with the module for installation Connector for installing power supply module Connector for installing processor module This connector is used to install a processor module Processor module must be installed next to the power supply module Connectors for installing 1 0 module or specialty module These connectors are used to install 1 0 Specialty modules Types of backplane ES a e a topes Processor Module NX70 CPU70p1 processor module m NX70 CPU70P 1 d UUUUBOUUUUL RUN ERROR BATT HAHH Bottom f ITA Front Side Hardware features Status LEDs Display the operational status of the PLC such as the run stop error and alarm status Operation mode selector switch Used to change the operation mode of the controller RS232 RS485 communication port 9 pin COM port Used to connect to the programming tool WinGPC and or touch panel Operating conditions setting switch DIP switches for 6 poles termination resistance setting and communication and program booting method selection Backup battery for memory Supplies a backup power to the b
78. ollows Processor module Computer 9 pin connector 9 pin connector Hardware Features and Specifications Overall Specifications General specifications Operating 0 C to 55 C 32 F to 131 F Temperature 25 C to 70 C 13 F to 158 F 5 30 to 85 RH non condensing Humidity Storage 30 to 85 RH non condensing 1500V ac for 1 minute between external terminal ac and frame ground FG Withstand voltage 500V ac for 1 minute between external terminal dc and frame ground FG 100 MQ or more at 500 mega V dc between external terminal and frame ground Insulation resistance FG Vibration immunity 7 o a Hz 1 sweep per minute 0 75 mm peak to peak 10 minutes per axis Shock immunity 10G 4 times for each X Y Z direction 1500 Vp p with 50 ns to 1 ys pulse width generated by noise simulator Dimensions mm unit mm 149 5 185 0 256 0 2915 362 5 398 0 433 5 Performance specifications Control method Stored program cyclic operation Digital 384 points 32 point module 12 slots External 1 0 48 channels 4 channel module 12 slots 28 pes Instructions Advanced 147 types Process speed Advanced Program capacity 9 6k words 20k words I O R RO 0 to R12715 2 048 points Link contact L LO 0 to L63 15 1 024 points Internal contact M M0 0 to M 127 15 2 048 points Note Available as link contact for NX 70 CPU 70p2 64 words Keep contact K KO 0 to M 12715 2
79. ot illuminate Power line defect Replace the CPU module Output WRON RUR TO ON State Short or open circuit Replace the CPU module during Run ue moan eS AROYE a CENAN I O bus error Replace the backplane module address will not operate Input or output module of only certain address will turn to On I O bus error Replace the backplane module state VOTA cote Om amo upul I O bus error Replace the backplane module module operate properly Input module No external input power Supply power No inputs on an input module will Low external input voltage Supply rated load power turn On LEDs are not illuminated Loose terminal screw or defective Tighten the screw and reconnect contact the module Inputs will not turn to On state ah ae l EDs are iiuminatedi Defective input circuit Replace the input module Inputs will not turn to Off state Defective input circuit Replace the input module Device connected to the input l Replace the input device module is defective One or more inputs on an I O Loose input wiring Reconnect the input wiring module will not turn On External input time is too short External input time is too short time is too short Adjust the input module Adjust the input module input module Loose terminal screw or defective Tighten the screw and reconnect contact the module choper IMPULS OA AMIO Defective input circuit Replace the input module module will not turn Off p P P Low external
80. peat execution D times NEXT Decrement D of FOR instruction by L NEXT Next H If itis not zero repeat execution from FOR instruction JMP J ump to the position marked LBL L JMP Jump J H label number Ca eo LBL Position jumped to by the LBL Label corresponding J MP instruction L 0 to 63 JMPS J ump Start J4 H J ump to the J MPE instruction eae JMPE Position jumped to by the k A H corresponding J MPS instruction CALL Call subroutine Sb CALL Call Subroutine Js H Sb 0 to 63 SBR Start subroutine Sb Subroutine Start s H Sb 0 to 63 End of subroutine Return execution Subroutine Return to the instruction after CALL Begin the block of constant cycle scan instructions Begin Interrupt Ni 1 to 999 20 msec to 10 sec Constant cycle time Ni 1 x 0 01 sec End the block of constant cycle scan instructions System Control Instructions INPR Refresh external input Receive input Signal during program execution Input Refresh g g prog Ch is external input word address Refresh external output Send OUTR output signal during program Output Refresh execution Ch is external output word address WAT Watchdog Timer EE Clear watchdog scan time END End of program This instruction is CH automatically added by WinGPC READ WRITE RMWR RECV SEND RECVB SENDB Communications Control Instructions Read Data from shared memory of high performance module Write Data
81. peripherals This R signal contains how the original Q signal from the peripheral device handled its function code The communication cycle for one function code ends when the PLC sends the R Communications delay The PLC will return a signal after receiving a Q or an RR within a specific time However due to errors in the communications network CRC values and communication speed flux there are occasions when the PLC will not receive the signal from the peripheral device The peripheral device should allow up to three seconds for a response from the PLC If there are no responses to the Q or the RR message the communication is considered to have failed and the Q or RR Should be sent again CPU ID All devices connected to the network need a network ID number for communication There is an available range of 0 to 191 network ID numbers for the NX series Redundancy is not permitted When a single PLC and a peripheral device are connected usually 0 1 or 255 is assigned as the network ID number to the PLC When the peripheral device wants to communicate to a connected PLC regardless of its programmed network ID number it can use global network ID number 255 to which any PLC will respond However the NX series can not be used to communicate with more than two CPU modules at one time so if you assign ID 225 as an ID of more than two CPU modules at once it will cause communication errors When several CPU modules are connected to o
82. r to Absolute Addressing on Chapter 3 Response R frame CR DA sa saz sor soo oy L H Completion code Can read n consecutive words Query Q frame Word absolute address starting address Refer to Absolute Addressing on Chapter 3 Ex Absolute address of K127 word is 01BF BASE L BF H 01 Response R frame N word values from the base words requested by the Q Length L Nx2 Change the content of the words R L M K F or W assigned to the absolute address Can read n consecutive words Query Q frame n word values from the base words requested by the Q Length L Nx2 2 Response R frame pa 7 Ja E Fi er ta En Read the bits and or word contents of the assigned absolute addresses Can read bits and words regardless of their order and location in memory Query Q frame Method of assigning bit word Assigning absolute address for bits absolute address Absolute address for the K127 12th bit 1BFC 15 14 13 0 Ax 0001 1011 1111 1010 bsol dd l F Ax L FC H 1B a Absolute Address BitWord Assigning addresses for word O O Absolute bit address Absolute address for the K127 word 01BF O 1 Absolute word address Ax 0100 0001 1011 1111 1 X Notused Ax L BF H 41 Ax A0 A1 An Dx D0 D1 Dn Response R frame D1 Dn CRC SOCIETES For the AO Al An requested by the Q the content DO D1 Dn of the word bit is return
83. ress fitted without removing the wire s insulation saving labor Procedure Bend the contact back from the carrier and set it in the pressure connection tool Matsushida electronics AXY52000 Insert the wire without removing its insulation until it stops and lightly grip the tool Contact control pins for wiring errors With wiring or cable pressure errors redo it using the contact controlling pins connected with the devices Press the housing against the pressing tools until this part touches the pins for removing contacts Flat cable connector connection Precautions when using a flat cable connector When using a flat cable for wiring field devices pay careful attention to the 1 0 number associated with the given cable number Connecting 32 point connector type NX70 X32D For DC 32 input points NX 70 X 32D NX70 CBLDC Flat Cable lat cable NX 70 X32D1 15m For TR 32 NX70 CBLTR output points NX70 Y X32T NX70 Y X32P I O address cross reference table for flat cable number 32 points Connector I Connector Il The I and Il connectors are positioned in opposite directions Please use caution prior to connecting Safety Measures Precautions regarding system design In certain applications malfunction may occur for the following reasons e The timing difference between opening and closing of the PLC power supply the 1 0 modules and power equipment e An operation ti
84. revent damage in case of a short circuit on the output Even if the module with the fuse cannot protect the overload for each element it is recommended to attach an external fuse for each output point However the module fuse is not designed to protect the device of the output module in case of short circuits Precautions for leakage current When using a SSR output the leakage current in the SSR output may cause a load not to turn Off To prevent this problem connect the resistance in parallel with the load oe Output Terminal COM Terminal I O module installation precautions 1 0 and power cable e Separate the wiring of the I O cable and the power cable as far as possible Do not put the two cables through the same duct e Leave 100 mm or more between I O wiring power cable or high voltage cable Module cover NX70 Y16R Module Cover MITT HUTTE Terminal Block Type Module Wiring Compressed terminal M3 0 The terminal base for the NX 70 PLC I O modules Terminal Type uses M 3 0 terminal screw Use the following compressed terminals for terminal wiring Open Type terminal Circular type terminal 6 4mm i 64mm amp or less or less Connector Type Module Wiring Wiring instructions Wiring instructions For the 32 point input module NX70 X32D NX 70 X32D1 of the NX70 PLC and the 32 point output module NX70 Y32T NX 70 Y 32P use a 20 pin MIL type connector T
85. s Y amp o Error 1 CPU state CPU run control same as FO 15 CPU switch remote control REM CPU switch RUN 1 CPU switch STOP 0 Watchdog time Indicates the user program watchdog time unit msec SR3 nee Indicates the scan time when executing a program Updated at every scan unit msec M ax scan time Indicates maximum value of scan time when executing a program SR5 Link module to SR7 Link module number as set by the link 1 2 3 PID table PID register block start address SR9 Bi net Remote setup area to SR16 information p Special registers SRO17 to SR511 W2577 to W3071 May be changed each is composed of 1 word Gives result of self diagnosis by CPU Indicates error content MB 7 6 5 4 3 2 1 0 Watchdog time error ON System error SRO17 information Undefined instruction ON Peripheral device fault ON Misc logic faults ON Logic circuit fault ON Microcomputer fault ON Location of undefined instruction Multiplication Stores high order bit values upon executing 16 bit multiplication instructions Stores the low order bit values of remainder after a division instruction has Lower remainder been executed Higher Stores the high order bit values of the remainder after a division instruction remainder has been executed Defective slot Location of defective slots mounted onto the basic slot information Dr Reserved System use area syntax information and system
86. the external I O module and internal memory An address is categorized into 1 bit 16 bits word or 32 bits double word Bit A bit is the minimum module required for calculation It can be either On 1 or Off 0 Byte A byte is made up of 8 bits It can hold data values from 0 to 255 In base 16 or hexadecimal a byte can be expressed as 0 to FF You cannot have a value greater than 255 when using one byte Word A word is made of 16 bits It can hold data values from 0 to 65 535 In base 16 a word can be expressed as 0 to FFFF NX PLCs set R M K F and W areas into word areas and can be processed without any separate measures Double Word A double word is made of 32 bits It can hold data values from 0 to 4 294 976 295 In base 16 a double word can be expressed as 0 to FFFFFFFF In the D32LT a double word is made up of two consecutive word addresses as follows Double word address Start word address Next word address Example When using W003 W003 double word address W003 start word address W004 next word address Scan Time The CPU follows a procedure in which it 1 reads the inputs 2 processes the ladder program and 3 updates the outputs It continually repeats this process This 3 step process is called a scan and the time it takes to complete this process is the scan time Ina typical PLC application most of the scan time is used to process the program When programming keep in m
87. the QA and R data to the peripheral delay receiving_delay device after the completion of the functions that are received by the PLC if port number 4 outportb 0x301 0x00 from the previous frame else outportb PORTADD 0x0C inportb PORTADD 0x0C amp OxFD J obID break case 3 J obID 3 8 case 8 if receiving_occuring Handles the received data and calculates the CRC of the received data data Recport if data PC_ID Crc OxFFFF index 1 receivingIndexmax gt receiving_frame 0 data Crc16 data J obID break case 4 case 9 if receiving_occuring if index lt receiving_Index_max 1 receiving_frame index Recport Crc16 receiving_frame index if index 3 if receiving_frame 3 receiving_ Index max 256 5 else receiving_Index_max receiving_frame 3 5 i else if index eceiving_Index_max 1 receiving_frame index Recport if receiving_frame index Sower_byte Crc J oblD obID amp 0x05 else if index eceiving_Index_ max receiving _framelindex Recport if receiving_frame index upper_byte Crc J obID H else J oblD J obID amp 0x05 y index 4 break case 10 Success T RUE unsigned int communication void struct time t unsigned far tm int ret Success FALSE receiving_frame 0 PlicID receiving_frame 1 PC_ID retrialC retrial_limit watchdog 0 J obID 0 index 0 sending_Index_max 5
88. ting The NX70 processor module allows you to modify instructions while operating Built In Real Time Clock RTC Built in real time clock Supports programming by time and date Supported only for the NX 70 CPU 70p2 module High capacity programming and memory backup The NX 70 module allows you to program up to 20K words for NX70 CPU 70p2 and 9 6k words for NX70 CPU 70p1 Built in flash EEPROM allows you to save programs separately Self diagnostics Self diagnostics allows you to minimize system errors and maximize diagnostic efficiency Maximum 384 1 0 points With 12 slot processor module you can use up to 384 I O points with terminal block type 192 points Supports various I O and specialty modules The NX70 processor module supports 24V dc input 16 32 points 110V ac input 220V ac input relay output transistor output 16 32 points SSR output A D 4 channels D A 4 channels RTD 4 channels TC 4 channels high speed counter and SCU WinGPC as programming tool WinGPC designed for processor control lets you create modify force 1 0 download and upload the program Itis a powerful easy to use programming tool Various I O base options up to 12 slots NX series PLC allows you to choose a backplane from 2 3 5 6 8 10 or 12 slots for maximum system configuration flexibility Built in RS232C RS485 2 ports NX70 CPU70p2 module With two built in communication ports the CPU70p2 modul
89. tions equipment in accordance with the following communication protocols and procedures Additionally the communications protocol allows for the PLCs to communicate to a central computer on a single network using RS485 at a distance of up to L2 km RS232C 15 m Communication Protocols for NX70 NX70 CPU70p1 and NX70 CPU70p2 e Parity No parity e Stop bit 1 stop bit e Communication method RS232 or RS485 optional e Communication speed 4800 9600 19200 38400 bps optional e Communication cable refer to the cable wiring diagram e Number of PLCs on a single network Maximum of 64 communicating 1 N using RS485 e Maximum communication delay time 3 seconds Communication Protocols Query Q Query is a signal sent from the peripheral devices to the PLC after setting the network ID number and the function code for the PLC to communicate with Step 2 OA Query Acknowledge QA Query Acknowledge is a signal sent from the PLC to the peripheral devices indicating that the Q signal from the peripheral device was received Step 3 RR Response Request RR Response Request Is a signal sent from the peripheral device to the PLC indicating that the QA signal from the PLC was received This signal is sent when Q gt QA is normal Step 4 R Response When the PLC receives the RR from the peripheral device it determines that the communication with peripherals is successful and sends R Response signal to the
90. uch as use of fault safe equipment Do not use this product under the conditions exposed to explosive gases It may cause an explosion M ake sure to use an external device when configuring the protective circuit breakers for emergencies or interlock circuits Fasten the terminal screws tightly to ensure that the cable connection is secure Incorrect cable connection may cause overheat and product malfunction Operate and keep the product under the allowed conditions directed in product specifications Otherwise it may cause overheating and product malfunction Do not disassemble or remodel the product Otherwise it may cause an electric shock or malfunction Do not touch the terminals when the power is on Otherwise it may cause an electric shock Installation Environment Nasri Do not install your PLC system if any of the following conditions are present e Ambient temperature outside the range of 0 to 55 C 32 to 131 F Direct sunlight e Humidity outside the range of 30 to 85 non condensing e Chemicals that may affect electronic parts e Excessive or conductive dust or salinity e High voltage strong magnetic fields or strong electromagnetic influences e Direct impact and excessive vibration Electrostatic Discharges ATTENTION Under dry condition excessive electrostatic discharges may occur Make sure to remove electrostatic discharges by touching a grounded metal piece before
91. uilt in memory RAM The connector is not connected at shipping Status LEDs RUN On when the processor is running PROG Green On when the program can be edited COMM Flashing when the processor is communicating BAT Red On when the battery is not mounted or is low Operation mode selector switch Sets the processor operation mode to RUN mode Sets the processor operation mode to RUN or PROG mode PROG Sets the processor operation mode to STOP mode i e PROG mode Operating conditions setting switch ON OFF Sets Sets the communication speed to 19200 bps communication Sets the communication speed to 19200 bps to 19200 bps OFF ON Sets the communication speed to 38400 bps ON ON Sets the communication speed to 4800 bps eee witches for communications communication Sets the communication method to RS 485 and program communications z booting methods When operating with the program stored in the built in RAM When operating with the program stored in flash ROM For RS 485 communication set both pins 1 and 2 to On if the system is an end station Switches for termination orr opp FOr RS 485 communication set both pins 1 and 2 to resistance setting Off if the system is not an end station DES Sets the communication speed to 9600 bps NX70 CPU70p2 processor module NX70 CP 70P2 i JUL RUN ERROR PROG BATT Bottom i TANT Front Side
92. ulation subroutine written in PASCAL Procedure CRC16 Data Byte Var i Byte Begin CRC Sum CRC Sum xor Data for i 1 to 8 do Begin if CRC_Sum and 1 1 then CRC Sum CRC_Sum shr 1 xor A001 Else CRC Sum CRC Sum shr 1 End End CRC 16 calculation subroutine written in C Void Crc16 unsigned int Data Unsigned inti Crc Crc N Data amp OxOOFF for i 0 i lt 7 if Crc amp 0x0001 0x0001 Crc Crc gt gt 1 0xA 001 else Crc Crc gt gt 1 Structure of Communication Frames The function code is explained with the example of Query and Response frame based on the 2 step communication Query Q and Response R frame Length of information area CRC 16 code byte 2 bytes 1 to 255 1 to 255 bytes 0 256 bytes gt Function code The frame is sent from SA to DA After Q or RR is sent DA and SA for the QA and p SenderID R from the CPU are replaced each other because the CPU becomes p ReceiverID the sender and the peripheral device becomes the receiver of the message Query Acknowledge QA frame CASA LS OY 00 CRCL CRC Response Request RR frame Constant Response R frame for an error Error 1 Wrong communication function code Error 2 Out of range Error 3 Wrong frame structure Error 4 CPU did not perform Error 5 Frame is too long Read the content of the bits R L M K F or TC assigned t
93. wer supply However do not connect them in parallel Use of internal and external power e 5V internal power The 5V dc power used for driving the internal circuit of each module IS Supplied from the power supply module through the internal bus of the backplane No separate power supply is required e 24V power The NX 70 powerl 24V dc power can be used for input power to input modules and driving output circuits of output modules For additional 24V power you may also have to use another power supply module or a commercial power supply Do not connect together the NX 70 power supply and a commercial power supply in parallel The NX 70 POWER2 or the NX70 PWRDC modules do not provide 24V power Only 5V output Is provided e Current consumption by each module Give considerations to current consumption by each module so that its power usage does not exceed the rated power usage at 5V or 24V dc Programming Tools Tools required for programming The following tools are required when programming with WinGPC WinGPC software for Windows Personal computer WinGPC for Windows WinGPC is the programming tool for editing and debugging PLC programs for NX series controllers WinGPC supports Microsoft Windows operating system Cable for programming For connection to the communication port of the NX70 processor module you can either purchase and use NX_CBLCPU2 or NX_CBLCPU5 cable or construct the needed cables as f
Download Pdf Manuals
Related Search
Related Contents
Samsung AQV09PSDX Керівництво користувача Samsung WF1602WQU 用户手册 End user procedures Manual de utilização LifeECO Thermal Cycler User Manual Copyright © All rights reserved.
Failed to retrieve file