Home
NX70 Pulse I/O Unit (4CH) (NX70
Contents
1. E 0 M X Start R4 0 Emergency stop R4 2 START STOP R2 0 p db p do CMPO E High low Speed R2 1 CMP1 Cutter operation R5 1 LLL 4 k y 0 5s 0 2s Shared Memory Setting Counter setting Setting the operation mode for each counter CH In the example the phase signal from encoder is input to R0 0 and R0 1 and counter function is used in 1 multiplication phase input mode and therefore enter FFFFFF20 to shared memory addresses 256 and 257 100h and 101h Shared Memory 256 257 100h 101h Settings bit 32 16 15 Epa ms xw ms p ws ms f ms A Counter number Setting item Functions Input Functions Input Functions Input Functions m FX E CE p MICA CAN MN Set value Input Input Counter Current Value Setting Enter K5000 H1388 as count initial value in the shared memory addresses 264 and 265 108h and 109h where the counter current value of CHO is stored Shared Memory 264 265 108h 109h Settings bit 32 16 15 0 eae Setvalue F F o o 1 3 8 8 Settings Setting the Comparison Output Set Value Setting the Comparison output set value to be compared with Counter current value In the example enter KO HO in shared memory addresses 288 289 120h 121h and K250 H FA in 290 291 122h 123h to output CMPO when counter
2. RO 0 R2 0 R4 0 R6 0 R8 0 NEUEN ONT R1 15 R3 15 R5 15 R7 15 2300 to R11 15 Verification of Slot No When mounted on CPU backplane The first slot on the right of CPU is 0 and the others are numbered as their location order Pulse I O unit SlotNo gt 0 Power O D NX 70 Programmoble Controller OPEN 2 222 22 9000 00000 az e 0000 Big 0000 k EA CPU backplane Embedded Counter Embedded Counter Functions Embedded Counter Functions Input pulse counting functions are embedded in the Pulse I O unit Counted values are stored in the shared memory areas of each channel Stored values can be read by a program so current value can be checked With comparison functions external output can be set according to count value High Speed Shared Count Memory The values can be read with ladder ounter programs Pulse train input JUUUUUL Embedded Counter Operation Count value is set to zero
3. Operated as output But if there is high performance output allocation high performance output is sent to I O connector It can be used as internal relay when not being used for external output Pulse Output Function Pulse output is directed to R2 0 to R2 3 This output can be used together with comparison result output CMPx In that case comparison result is sent to I O connect and pulse can be directed with this R output Comparison Output Function Comparison result output that has been calculated by comparison output functions This output is directly allocated to external output terminal 111 A1 to A8 and its output R R2 0 to R2 7 can be used for PLS direction or internal relay Comparison output can be monitored by internal input R with same name M Pulse output function Pulse generated by pulse output functions is sent out There are A and B types of signal outputs This output Is directly allocated to external output terminal 111 B1 to B8 and output R R2 8 to R2 15 can be used as internal relay Comparison output can be monitored by internal input with the same name R PWM Output Functions PWM signals generated by PWM output functions are sent out This output is directly allocated to external output terminal 111 B5 to B8 and output R R2 12 to R2 15 can be used as internal relay Comparison output can be monitored with input with the same name R Internal Out
4. F001 00 First 1Scan ON F000 15 CPU RUN R004 00 F001 00 R Pulse Output Start DLET FR W104 DLET A D W106 S FFFFFFF6 TO 0 320 SZ 2 FR W106 READ z SZ 2 FR 0 264 R003 08 OUT DLET D W102 S 500 TO 0 288 H SZ 2 FR W102 D W108 S 300 TO 0 328 SZ 2 FR W108 D W110 S 0 TO 0 264 um SZ 2 FR W110 For counter function setting input mode for CHO is set to direction control and counter setting to internal connection Write to addresses 256 and 257 100h and 101h of the shared memory counter function setting Address area to write Comparison output function setting Compare CHO counter course value and comparison output value and output the result to CMPO Write to shared memory addresses 260 and 261 104h and 105h comparison output setting Pulse output format instruction Direction control mode instruction that changes frequency in case of edge rise of PLSx start signal or comparison output Write to address 320 to 321 140h and 141h of the shared memory pulse output format setting Address where to store the read value The number of words to be read Read shared memory addresses 264 and 265 108h and 109h counter course value and store the values into W200 CHO pulse output enabled operating at switch R4 0 input Set the initial comparison outpu
5. Counter current value is cleared with RO 2 clear instruction and count operation is paused with RO 3 mask instruction Timing Diagram Count value changes according to the input status of each signal as illustrated below Count value changes at the pulse input edge rise time CHO IN A RO 0 CHO IN B RO 1 CHO Clear RO 2 CHO Mask RO0 3 Count stops while mask signal is ON ee Count increases with RO 0 Count decreases Count increases with i pulse edge rising and with R0 1 input RO 0 input direction control OFF Reset count value with clear signal ON Shared Memory Setting Counter setting Setting the operation mode for each counter CH In the example increase pulse train is input to RO O and decrease pulse setting to RO 1 and counter function is used in direction control mode Enter FFFFFF10 to shared memory addresses 256 and 257 100h and 101h Shared memory 256 257 100h 101h settings bit 32 16 15 0 number Setting item Functions Functions Functions Functions par AN mode MD mode setting mode setting i Di ion Terminal an MEME Unused Unused Unused Unused Unused Unused TENE ee control Input Program Example Configuration Example Program F001 00 DLET D W100 S ees NX70 Data setting Pulse4 First po Slot number of the mounted module CPU l Function setting area of the shared memory 256 100h of the mounted module The number of
6. OV 24V DC R1 coincidence is output CMPO Pulse train input JUUUUUUL CHO IN A Ro Direction control signal input CHO IN B ROA gogogaga TTT TTL jz a gt L gt pep is PL te is e jJ Comparison Clear instruction SK i CHO clear R02 coincidence pos E a Current cy as o CHO Mask Ro 3 value eius When counter current value coincides with set value and the comparison result is output on CMPO Counter current value is compared with pre set comparison output set value and the comparison result is output This function is available in all counter operation modes but in this example the counter is used in direction control mode Timing Diagram Count value changes according to the input status of each signal as illustrated below l e me AA AAA Count increases with Count decreases with Count increases with R0 0 pulse edge rising direction control ON direction control OFF and direction control i i CHO IN A R0 0 CHO IN B RO 1 CHO Clear RO 2 CHO Mask RO0 3 Comparison output set value oo DoD Countstops on mask signal ON CMP signal ON tooo Reset count value cane a aa H when coincidence with clear signal ON bor A or excess Comparison output point CMPO R2 0 AE NE Qucm EO sig
7. o A E 17 Configuration and Design Verification of the Unit 19 Slot No and I O Number Allocation Verification sees 19 Embedded COUTO TIE E DD OE D UOTE 27 General I O Function 29 General VO FUNCION ista 29 Input Time Constant Function 31 Input Time Constant FUNCTION is 31 Use Input Time Constant Function eese nnns 33 High Speed Counter Function 35 High Speed Counter Function cccccsccesseceeeeeeseeeeeaeeeeaeeesaeeeseeeeseeeesaeees 35 Count Function Available as Direction Control Mode 40 Count Function Available as Individual Input Mode 42 Count Function Available as Phase Input Mode 44 Comparison Output Function 47 Comparison Output FUNCION nC N 47 Comparison Output Function with Counter eere 50 Pulse Output Function 53 PUISE OUTDO UT FUNCION ica 53 Use Pulse Output Function occoocccncnccncccnnncnnnccnnconnnonnnnonnnonnncnnnronnnennncnnanenaos 57 Use Pulse Output Function Frequency Change 59 Use Pulse Output Function Constant Pulse Output 62 Use Pulse Output Function Setting Increase Decrease Posi
8. 0 on power off Count value current value stored in shared memory can be read with the READ instruction Count value current value can be modified with the WRITE instruction Count Range of the Counter 2 147 483 648 to 2 147 483 647 t 93 signed 32 bit Max Value I When current value exceeds max 2 147 483 646 min it returns to min max 2 147 483 645 without error In this case no error i occurs 2 147 483 647 I Min Value 2 147 483 648 I t mE EEEEH J Shared Memory Address for Storing Counter Value CHO 264 265 108h 109h CH1 266 267 10Ah 10Bh Coment Signed 32 bit CH2 268 269 10Ch 10Dh value count 2 147 483 648 to 2 147 483 647 CH3 270 271 10Eh 10Fh Read Current Value Use the READ instruction to read the count value current value from the shared memory of Pulse I O unit Current Value Input Use the WRITE instruction to enter the count value current value into the shared memory of Pulse I O unit General I O Function General I O Function What is General I O Function e General I O function means the digital I O represented by input and output units Pulse I O unit has high performance functions like counter function but I O without allocations for high performance functions is used for digital I O functions e When used along with input time constant functions it can be used as I O with input time constant functions w
9. 0 and RO 1 and measure count numbers per second Calculate rotation per minute In this example the resolution of encoder is 1000 pulses rotation Rotation per minute is stored in W106 and W107 for later checking with monitor functions of programming tools such as WinGPC S W Enter phase signal in RO 0 and RO 1 and measure every second In this example the resolution of encoder is 1000 pulses rotation Rotation per minute is stored in W106 and W107 for later checking with monitor functions of programming tools such as WinGPC S W Shared Memory Setting Counter Setting Setting the operation mode for each counter CH In the example the phase signal from encoder is input to RO 0 and R0 1 and counter function is used in 1 multiplication phase input mode therefore enter FFFFFF20 to shared memory addresses 256 and 257 100h and 101h Shared Memory 256 257 100h 101h Settings bit 32 16 15 Enanos ms ws ms ms O A es or Counter number Setting item Input Functions Input Functions Input Functions Input Functions FT NN mp INN DICO CAN pP NON Set value Input Input Counter Current Value Setting Enter a value that does not coincide with counter current value at CHO In this example enter K 16777216 H FFO00000 in shared memory addresses 264 and 265 108h and 109h where the current value has been stored Shared Memory 264 265 108h 109h Settings bit 32 16 15 0 Setting item Compari
10. 266 267 10Ah 10Bh Counter CH1 Current value K 2 147 483 648 to K 2 147 483 647 Address 268 269 10Ch 10Dh Counter CH2 Current value K 2 147 483 648 to K 2 147 483 647 Address 270 271 10Eh 10Fh Counter CH3 Current value K 2 147 483 648 to K 2 147 483 647 Program Example Configuration Example Program pu Pulse4 POWER CPU l J Address where to store the read value The number of words to read Read from the mounted module Starting address of the shared memory Slot number of the mounted module Input the value of address 264 of Pulse4 module into W0000 and W0001 of CPU Current Value Input e Current value of each counter is stored in shared memory as described below e Enter current value by 2 word units using the WRITE instruction data writing at high performance unit Address 264 265 108h 109h Counter CHO Current value K 2 147 483 648 to K 2 147 483 647 Address 266 267 10Ah 10Bh Counter CH1 Current value K 2 147 483 648 to K 2 147 483 647 Address 268 269 10Ch 10Dh Counter CH2 Current value K 2 147 483 648 to K 2 147 483 647 Address 270 271 10Eh 10Fh Counter CH3 Current value K 2 147 483 648 to K 2 147 483 647 IMPORTANT ae offset value can be set by counter current value Program Example Configuration Example Program NX70 Pulse4 Slot 0 Slot 1 MO000 00 Data setting Slot number of the mounted modu
11. A3 R2 cmo clear A4 ROS CHO Mask AS ROA CHINA A6 ROS CHIINB sema Ao armes Terminal ur CARETO 1 17 Ros chans o M pmo ear 84 Ron cH2Mask ooo o o 85 R2 CHINA fT 86 ROIs Nns 87 Rota OH clear 88 ROT CHiMek AmO CompaionCMP RM f Comparison CmPT Rn Comparison Cmp2 R3 ComprsontMP3 Ri4 ComparisoncMPa R8 CompaionCMPS Ri CompeisoncMP6 p RW ComprsotMP7 a SOA Qm o me Rs wma Reto rra o O fon BIB pp PSA PO pes Ps Pe pra A ez pee SPS Ps No input allocation The I O number allocations above are applied when NX70 ATTENTION PLC Pulse output unit 4CH is installed in slot 0 I O number can differ depending on the installation slot External Terminal 11 Unit Internal I O Output contact OM ro o M fra A free AM fres A Rma A Rs A O m mr 59 fres 9 freo 9 fen Ce 89 Wm 9 fea IND NN 9 IC OEA sa otto Soft Mask 7882 6H So Glar as CH Sof Mask rae GHz Sof clear as CH Sof Mask rae crs Sof clear 887 CH Soft Maske CIN a BECK AECI a
12. Jj x qq 9 Settings Shared Memory 288 289 120h 121h Settings Target Value 4 bit 32 16 15 0 iia Suus 4 qnom pgs qoo E CIN doe y Settings Shared Memory 288 289 120h 121h Settings Target Value 5 bit 32 16 15 0 REED silo 1010011840 Settings Setting the Comparison Output Point Select the counter channel number and output logic for each comparison output point In the example counter current value at CHO is compared with comparison output set value and the result is output at CMPO and CMP1 Therefore enter FFFFFF44 or FFFFFFOO in shared memory addresses 260 and 261 104h and 105h Shared Memory 260 261 104h 105h Settings bit 32 16 15 0 Setti 1 iU Unused Unused Unused Unused Unused Unused CHO l Comparison Comparison I CMPO is ON when current value gt set value Appendix A Specifications Performance Specifications List General Specifications Operating 0 C to 55 C 32 F to 131 F Temperature 25 C to 70 C 13 F to 158 F o Operating 30 to 85 RH Non condensing Humidity 30 to 85 RH Non condensing Wie voltios 500V ac for 1 minute between each pin lt gt groundings of external connectors 9 Except F and E terminals F and E terminals connector shield cables 100 MQ or more at 500V DC between each pin lt gt groundings of external Insulation resistance connectors But except F and E terminals F and E terminals connector
13. PWM2 PWM1 PWMO PWM 60 on off e E A we NX70 PLC Pulse output unit NX70 PULSE4 A available on pulse I O unit Configuration and Limit for Pulse I O Unit Configuration Limit with Current Consumption Internal current consumption for Pulse I O unit is shown below at 5V Be careful when configuring system not to exceed the total capacity limit considering the consumption of other units NAO PLC Pulse VO unit ach NXTO PULSES 450mA Mounting of Pulse I O Unit e For NX70 PLC Pulse I O unit can be mounted at any location on the basic backplane But it cannot be mounted on power supply unit or CPU unit slots There is no limit to the number of Pulse I O mounting for NX70 PLC Basic backplane Mountable at any location Restrictions Due to Combination of Pulse Output Function Pulse I O unit sends out pulse and PWM outputs from the same CH Up to 4CH are available When using combination of pulse and PWM outputs allocate pulse ahead of PWM as shown in the following table Parts and Functions Parts and Functions D Bottom of Unit NX70 PLC Pulse output unit NX70 PULSE4 1 Status LED Turns on I O status light at the terminal blocks 2 Input Connector NX70 PLC Relays in
14. Unused Start signal or comparison output PLS PWM frequency setting This setting determines the frequency of PLS PWM pulses In this example enter K300 H12C into shared memory addresses 328 and 329 148h and 149h because pulse output starts at R2 8 and R2 9 PLSO at 10 kHz The entered value is replaced with K1000 H3E8 before comparison coincidence CMPO turns ON to prepare for pulse frequency speed change in comparison output mode It changes again to K300 H12C before deceleration and KO HO before stop Shared memory 328 329 148h 149h settings Acceleration deceleration bit 32 16 15 Setting item Set value Settings Shared memory 328 329 148h 149h settings At Max speed bit 32 16 15 0 Setting item PLSO PWMO frequency setting Set value Settings K 1000 Shared memory 328 329 148h 149h settings Stopped bit 32 16 15 Setting item Set value Settings Program Example Configuration CPU Slot 0 Slot 1 Set determination function for acceleration and deceleration position at Pulse4 module and instruct operation and direction control signal based upon input switch position 1 Up to 500 pulses 2 Set instruction as operation at frequency speed 300 Hz 3 Initialize course value to 0 Example Program for Determination of acceleration and deceleration position DLET D W100 S FFFFFFO2 F001 00 First 1Scan ON F001 00 First 1Scan ON
15. ae B2 B3 B7 8 B csp e rao man o ma reais Du Ems marks No output allocation Comparison CMPO Tr Comparison CMP 1 Comparison CMP2 Comparison CMP3 Comparison CMP4 Comparison CMP5 Comparison CMP6 Comparison CMP7 PLSO direction NX70 Pulse I O unit NX70 PULSE4 PLS1 direction PLS2 direction PLS3 direction x 7 NEN PLS1 A PLS3 A PWM2 PLS3 B PWM3 PLSO start PWMO start marks Indicate the connector pins to which the comparison results are directly output in order to send to an external device But the signal states are saved in the input contacts R1 0 to R1 7 so that you can monitor them with the programming software ATTENTION The I O number allocations above are applied when NX70 PLC Pulse I O unit 4CH is installed in slot 0 I O number can differ depending on the installation slot Shared Memory Areas NX70 PLC Pulse I O unit ACH shared memory map Shared Memory Map Access unit MEX tword 264 265 108h 109h Counter CHO Current value a value 266 267 10Ah 10Bh Counter lt CH1 gt Current value en value 268 269 10Ch 10Dh Counter lt CH2 gt Current value eee erie value 2W W 270 271 10Eh 10Fh aw Counter lt CH3 gt Current value uer E value q aa r aa 30410 311 180610 137m AW Reewd SSCS sso Wh Wo AW Reewd 316 317 13Ch 13Dh 2W Input time constant setting 320 3
16. any function can be used for general I O terminal which enables a single high speed counter unit to be used both for counter function and sensor input providing system configuration without system resource loss Easy position control with a single pulse I O unit Pulse I O unit provides pulse output function Output pulses are always known to the Pulse I O unit which feature allows you to implement a position control with a single Pulse I O unit Four 0 8A Outputs Functions of Unit e Each function can be operated by shared memory settings General I O Functions e Pulse I O unit operates as a 16 In 16 Out mixed l O unit with its default setting By changing the shared memory configuration you can configure it as a specialty module such as high speed counter or pulse output unit a 32 point input unit a 32 point output unit or a 16 In 16 Out mixed l O unit e l O allocation changes depending on unit installation slot Ex When unit is installed in slot 0 as for occupied I O addresses RO to R1 are allocated for input and R2 to R3 for output Among them word in RO is designated for input from external terminal block and that in R2 for output to external terminal block e Function l O will set as priority when using functions but for areas without function allocation they will be used for general I O Input Time Constant Functions e Effective pulse width for input signals from I O connector can be set by this funct
17. current value is 0 and CMP1 when 250 Shared memory 288 289 120h 121h settings bit 32 16 15 0 Setting item Comparison output set value for CMPO Set value Settings KO Shared Memory 290 291 122h 123h Settings bit 32 16 15 0 Setting item Comparison output set value for CMP2 Set value Settings Setting the Comparison Output Set Value Select the counter channel number and output logic for each comparison output point In the example counter current value at CHO is compared with comparison output set value and the result is output as CMPO and CMP1 Therefore enter FFFFFF44 or FFFFFFOO in shared memory addresses 260 and 261 104h and 105h Shared memory 260 261 104h 105h settings bit 32 16 15 A ee e AN ee CI 1 V qM einige Unused Unused Unused Unused Unused Unused CHO CHO Comparison Comparison I CMPO is ON when current value gt set value Position Control by Absolute Value Overview Install Pulse I O unit in slot No 0 16 points output unit 0 V 24V DC E M 1000 R40 16 points input unit Start input Move to oO 0 d U UW L Start input Move to 1500 R 7 art inpu ove to DER o oSeth ds Emergency stop R4 2 E O O E CHO IN A R00 Count phase signals 213 from encoder SES CHO IN B R01 Motor Encoder Occupied I O area po RA R5 c E CMPo R29 Inverte s tart Sto
18. frequency 100 kHz 2 modes direction control individual output Number of output points 4CH II B5 to B8 terminal WM XT Output Max load current resistance load and output waveform can be distorted depending on load current or type of load Function Specifications Occupied I O points 32 In 32 Out Input Output External point External point 16 In 16 Out Counting range range Counting range 32 bit signed 2 147 483 648 to 2 147 483 647 Counter Counting speed speed Counting speed 200 kHz Inputmode Inputmode Direction control individual input phase input Special functions Special functions Multiplication 1 2 4 m n l EOD Point Max 8 points output 16 points 2 point unit constant 4 8 16 32 us 1 Hz to 100 kHz Set unit 1 Hz Output mode Direction control individual output Number of channels ACH Output current Max 0 8A 1CH PWM output 0 to 100 Set unit 1 Cycle Cycle 1 Hz to 30 kHz Set unit 1 Hz U This value applies when input time constant filter is set to N A 2 Pulse output and PWM output share a common CH When using combined functions refer to the table below to select functions per each CH Appendix B I O Contact Points and Memory Map I O Contact Points Input contact NX70 Pulse I O unit NX70 PULSE4 External Po Functions Counter Comparison CUNT f Roo moma e p CT A2 R4 CHOBE
19. is stored in the shared memory as current value 1 Internal counting of pulses output from unit 2 Count input pulses JUUUUUUUUL Setting Counter Function e To use counter function shared memory setting is needed e Besides shared memory setting counter can be masked or cleared with counter control signal Step 1 Shared Memory Setting Set the operation mode for each counter CH in the shared memory settings Set the counter functions mode as shown in the table below Address 256 257 100h 101h setting p28 b24 b20 b16 b12 b8 b4 bO Counter CHO setting used unused Counter CHO setting input mode Counter CH1 setting used unused Counter CH1 setting input mode Counter CH2 setting used unused Counter CH2 setting input mode Counter CH3 setting used unused Counter CH3 setting input mode Setting Input Mode Effective only for Setting Function terminal input Used Terminal input Direction control N A Individual input 1 multiplication Phase input 2 multiplications 4 multiplications Used Internal connection Invalid Invalid Unused 1 Used when counting the number of output pulses via internal connection to pulse or PWM output 2 Do not use this setting 3 Initial values on power input are set as direction control for input mode and unused for function setting ATTENTION i Make sure to access shared memory by 2 word units Int
20. module as PWM output and start PWM output operation using input contact PWM output Example Program DLET D W100 F001 00 Set pulse output format to PWM First S FFFFFFEQ Slot number of the mounted module 1Scan Write to addresses 320 and 321 140h ON and 141h of the shared memory TO 0 320 pulse output mode setting SZ 2 The number of words to be written FR W100 Address area to write F001 00 D W102 Set instruction as output frequency First S 10000 10KHz 1Scan ON TO 0 328 Write to addresses 328 and 329 148h 5222 and 149h of the shared memory FR W102 output frequency setting F001 00 Set PWM mode duty to 50 Write to shared memory addresses 344 and 345 158h and 159h PWM duty setting TO 0 344 SZ 2 FR W104 R004 00 CHO pulse output enabled R004 01 CHO pulse output start Application Examples Speed Measuring Overview Install HSC unit in slot No 0 CHO IN A Roo Occupied I O areas Count phase input from the encoder and calculate rotation per minute based on the counts In this example the resolution of encoder is 1000 pulses rotation Formula for calculation of rotation per minute Pulse per second Pulse per rotation Rotation per minute X 60 seconds per minute _ Pulse per second x 60 seconds per minute 1000 Pulse per rotation Rotation per minute x Enter phase signal from encoder in RO
21. shield cables ae 10 to 55 Hz 1 cycle minute double amplitude of 0 75mm 10 minutes on 3 axis Vibration immunity X Y Z Shock immunity Peak acceleration and duration 98 m s or more 4 times for each X Y Z direction 1500Vp p with 50ns to 1 ys pulse width generated by noise simulator I O Specifications Common Specifications Occupied l O points Input 32 points output 32 points Internal Current Consumption 500 mA or less 5V DC Operation Indicator 32 point LED External connection method Connector One MIL standard 40P connector Input Specifications Response 1 us or less time ON gt OFF ON gt OFF OFF 2 us or less 16 points Common Common Number of counter ACH channels Counter Counting range range Counting range 32 bit 32 bit signed 2 147 483 648 to 2 147 483 647 n 32 bit signed 2 147 483 648 to 2 147 483 647 n 2 147 483 648 to 2 147 483 647 This value applies when input time constant filter is set to N A Output Specifications Isolation method Photocoupler Rated load voltage 5 to 24V DC Rated load voltage range 4 75V DC to 26 4V DC 0 1A I II JA1 to A8 II 1B1 to BA terminal Output OFF state leakage current 1 yA or less Max ON state voltage 0 5V or less drop Response 1 us or less time 1 us or less 16 points COMMON External 20 4V DC to 26 4V DC power ted 30 mA for 24V DC 4CH L 11381 to B8 terminal Pulse 1 Output Min output
22. value Pulse I O Comparison OFF ON output CMPx E No coincidence Coincidence Nocoincidence_ 4J signal EQx Coincidence uy cra TIN AAA mr sel NX70 PLC Pulse output unit NX70 PULSE4 Comparison output ON OFF can also be set as reverse operation EOx is an internal processing signal that is not sent outside Pulse Output Function e Pulse I O unit has 4CH for pulse output e Max 100 kHz output and 2 modes of output form as shown below are available for pulse output function Output frequency can be set by 1 Hz unit e Pulse output unit can be input to high speed counter via internal connection providing high speed processing Direction control Forward direction Negative direction PLSx A orc lon LJ LJ L LJ PLSx B NX70 PULSE4 c ep T OFF EN PLSO A PLSO B LSU Forward direction Negative direction PLS1 A PLS1 B 3 amp 4 OFF ON diem E i e pw itr jes PLS2 A PLS2 B PLS3 A PLS3 B PLSx A PLSx B o ON NX70 PLC Pulse output unit NX70 PULSE4 PWM Output Function e Pulse I O unit has 4CH for PWM output e Max 30 kHz is available for PWM output and Duty can be set by 1 unit PWM setting example Max 30 kHz lt gt 30 60 o i PWM 3096 ff 60 40 4 NX70 PULSE4 0 7 PWM3
23. words to be written Address area to write Slot 0 Slot 1 TO 0 256 A SZ 2 FR W100 Input the values of W100 and W101 of CPU into address 256 100h of Pulse4 module Count Function Available as Phase Input Mode Overview Install Pulse I O unit in slot No 0 Hui Phase signal pulse input on A E MUU UU UU CHO IN A ROO Phase signal pulse input on B PULL CHO IN B Ron Occupied I O areas RO OV 24V DC R1 PETTITT PH Bl sf lat 1 BI 1j sf Pf l l Ho 1 HD ef s 11 is ie UN e 1 lif eo jJ Clear JBOHRHGHOR CHO clear R02 Q Mask instruction prt e CHO Mask RO 3 Phase signal from encoder is input to R0 0 and RO 1 and measures the count number Counter current value is cleared with RO 2 clear instruction and count operation is paused with RO 3 mask instruction Timing Diagram Count value changes according to the input status of each signal as illustrated below Count value increases with IN A OFF and IN B edge falling with 1 multiplication and decreases with IN A OFF and IN B edge rising CHO IN B RO 1 CHO Clear RO 2 CHO Mask RO 3 Count stops while mask signal is ON 48 Count increases with up Count decreases Count increases with up count input IN A OFF with down count count input and edge falling o
24. 2 FR W102 R003 08 UT R003 12 UT R002 00 UT TO 0 328 SZ 2 FR W104 DLET D W106 m S 10000 TO 0 328 m SZ 2 FR W106 Slot number of the mounted module Write to addresses 320 and 321 140h and 141 of the shared memory pulse output mode setting The number of words to be written Address area to write Set instruction as output frequency 10 000Hz Write to addresses 328 and 329 148h and 149h of the shared memory output frequency setting CHO pulse output Enable CHO pulse output start CHO pulse direction control Set instruction as output frequency 20 000Hz Write to addresses 328 and 329 148h and 149h of the shared memory output frequency setting Set instruction as output frequency 10 000Hz Write to addresses 328 and 329 148h and 149h of the shared memory output frequency setting Use Pulse Output Function Constant Pulse Output Overview Install Pulse I O unit in slot No 0 32 points input unit OV 24V DC Enable input PLSO R20 era R38 Enable signal PLSO Enable R312 Start signal PLSO start Pulse train output Start input PLSO e R28 Pulse output PLSO A Direction control signal output Stop pulse output at the moment when set value is reached Counting output pulse trains with internal connection R29 Pulse output PLSO B Comparison coincidence signal CMPO current s
25. 21 140h to 141h PLS PWM Setting Pulse output form setting 322 323 142h 143h PLS PWM flag ES Pulse output form monitor 328 329 148h 149h PLSO PWMO frequency setting Output frequency setting 330 331 14Ah 14Bh PLSO PWM1 frequency setting Output frequency setting 332 333 14Ch 14Dh PLSO PWM2 frequency setting Output frequency setting 334 335 14Eh 14Fh PLSO PWM3 frequency setting Output frequency setting 336 to 343 150h to 157h 2W Reseved Ff 344 345 158h 159h PWMO Duty Setting PWM Duty Setting 346 347 15Ah 15Bh PWM1 Duty setting PWM Duty Setting 348 349 15Ch 15Dh PWM2 Duty setting PWM Duty Setting 350 351 15Eh 15Fh PWM3 Duty setting PWM Duty Setting Input time constant setting for input RO O to RO 15 M R W od Shared Memory Area Description Pulse I O 4CH unit shared memory Counter functions setting o 257 101h N f LE 256 100h E ON 1 o oro os 23 22 21 o e 18 e 15 14 19 12 11 10 o foe o7 es o oaf osf oz orf oo cus cx o o Inputmode Functions Input mode Functions Inputmode Functions Inputmode Functions setting setting setting setting setting setting setting setting Input mode setting Effective only for terminal input Function setting Direction control Used Individual input Terminal input 2 Used Phase input 3 Internal connection Invalid Invalid Unused 1 Used when cou
26. 23 to b16 b15 to b18 b17 to b1 er sss ess ora ove sna oan 00 Unused Duty set value error flag Duty 0 flag Frequency set value error flag Frequency 0Hz flag PWM output flag Pulse output flag BUSY flag Flag specifications BUSY flag This flag indicates pulse or PWM output 1 Output 0 Output OFF Flag for pulse output setting Output when pulse output setting is configured 1 Configured 0 Not configured Flag for PWM output setting Output when PWM output function is configured 1 Configured 0 Not configured Flag for frequency OHz Output when frequency is set to OHz 1 OHz Configured 0 Setting other than OHz Error flag for frequency settings Output when frequency setting is out of permitted range PLS output 1 Setting 131 072 kHz 0 Setting less than 131 072kHz PWM output 1 Setting more than 32 768 kHz 0 Setting less than 32 768 kHz Upper limit for error detection is 1048 575 kHz 1048 575 kHz FFFFFh When setting exceeds the limit the value based on the lower 20bit is applied Flag for duty 0 setting Output when duty is set to 0 1 Setting0 0 Setting other than 0 Error flag for duty setting Output when duty setting exceeds 101 1 More than 101 O Less than 101 Flag example Onpowerinput o Average 1 output Error in frequency setting A pn T QHzssting J PWM d frequency output 9 Duty 0 setting Error in Duty EN 1 setting Rese
27. 32 16 15 0 RO 15 RO 13 RO 11 RO 9 RO 7 RO 5 RO 3 RO 1 External input Ro 14 Ro 12 Ro 10 RO 8 R0 6 R0 4 R0 2 RO 0 See Shared Memory Areas in Appendix A for shared memory addresses Program Example Configuration Example Program NX70 Pulse4 Slot 0 Slot 1 F001 00 D W100 E Data setting First S FFFFFFF2 Slot number of the mounted module 1Scan Write to shared memory address ON 316 to 317 13Ch to 13Dh input constant setting The number of words to be written Address area to write TO 0 316 SZ 2 FR W100 Input the values of W100 and W101 of CPU into address 316 13Ch of Pulse4 module input constant setting High Speed Counter Function High Speed Counter Function What is Counter Function e Counter function counts the input pulse number and reflects it into the current value Also it sets the offset value by recording data into the current value e Pulse I O unit has 4 channels of 2 phase input counter There are three types of 2 phase input mode as follows 1 Direction Control Mode 2 Individual Input Mode 3 Phase Input Mode e Particular to Pulse I O unit the connection point condition of pulse signals to be counted can be selected 1 Counting inputs from I O connector 2 Pulses generated from pulse output or PWM output function are counted via internal connection Shared Input pulse memory Counter The count value of pulse number
28. 6 15 1 CMPO is ON when current value gt set value PLS PWM frequency setting Pulse output form is determined by PLS PWM setting In this example enter FFFFFFF6 into shared memory addresses 320 and 321 140h and 141h Pulse output starts at R2 8 and R2 9 PLSO in direction control mode when PLSx Start signal edge rises or in comparison output mode Shared memory 320 321 140h 141h settings bit 32 16 15 0 Output number Unused PWM3 PWM2 PWM1 PWM Setting item Unused Unused Unused Unused s s E Form EN TA lt a PES Data with Settings Unused Unused Unused Unused Unused Unused Unused Start signal or comparison output PLS PWM frequency setting This setting determines the frequency of PLS PWM pulses In this example enter K1000 H3E8 into shared memory addresses 328 and 329 148h and 149h because pulse output starts at R2 8 and R2 9 PLSO at 10kHz After pulse output starts by Start signal enter KO HO to prepare for stopping pulse Shared memory 328 329 148h 149h settings before pulse starts bit 32 16 15 0 PLSO PWMO frequency setting Setting item servalue 0 o o o o 3 E 8 Settings K 10000 Shared memory 328 329 148h 149h settings after pulse starts bit 32 16 15 0 Setting item PLSO PWMO frequency setting Servalue 0 0 o o o o o o 0 Settings K ATTENTION When pulse frequency speed is changed w
29. 8 RO 7 CH1 Mask UJ 1 RO 8 CH2 IN A CH2 IN B B3 RO 10 CH2 Clear RO 11 CH2 Mask R0 12 CH3 IN A RO 13 CH3 IN B 7 RO 14 CH3 Clear 00 RO 15 CH3 Mask r Lol ww 77 iu A D y B L ix a high speed I O signals but it does not indicate any malfunctions on the unit e The numbers described above are I O numbers with Pulse I O unit mounted in slot 0 I O number can differ depending on the installation slot Wiring Terminal Pinouts Terminal arrangement is common to Pulse I O unit 4CH and High performance High speed counter unit 4CH 0 ON mE oV ov TM 00 Las O Oi loa 7O Gi la AA 0 2 O ie lo e o 68 SQ OM vie ee ai b 9 1 ll Input part Output part NX70 Pulse I O unit NX70 PULSE4 Mo 4 COM points 2 points and 2 OV points are internally connected respectively Wiring Diagrams Input Part A A gt Input indicator LED A Input terminal 3k2 BA Ria a 1n341 JeuJ81u COM terminal cal Q Pc ee eee ee E Output Part e TU ita ye a D a oe Output indicator c Terminal LED MM 9 A 24V DC i Output terminal Ls 24VDC Terminal n3119 euJaju Con
30. 9 148h 149h PLS K1 to K100000 Address 330 331 14Ah 14Bh PLS K1 to K100000 Address 332 333 14Ch 14Dh PLS K1 to K100000 Address 334 335 14Eh 14Fh PLS K1 to K100000 Make sure to access shared memory by 2 word unit On shared memory PLS PWM frequency setting should be located after PLS PWM setting If not it may not work properly Do not set a value out of the permitted range It may cause errors Error detection upper limit of the unit is 1048 575 kHz 1048 575 kHz FFFFFh When setting exceeds the limit the value based on the lower 20 bit is applied li PLS PWM flag is prepared at shared memory addresses 322 and 323 142h and 143h Pulse output can be monitored by reading the flag in these addresses See PLS PWM Flag in Appendix B for details e See Shared Memory Areas in Appendix A for shared memory addresses Step 3 PLS control signal e Beside PLS PWM setting Enable start and direction signals are needed to be controlled by PLS control signal Enable signal Enable signal determines valid stop of pulse output ON Pulse output valid OFF Pulse output stop Start signal Start signal starts up pulse output or change output frequency Frequency can also be changed at the time of comparison coincidence or data refresh by Pulse output setting configuration Start signal is valid only when Enable signal is ON If not start signal is invalid When both Enable and Star
31. A Direction control signal output L R29 Pulse output PLSO B Speed change input oa Pa Sending pulse output in direction control mode Turn ON Enable input at R4 0 and Start input Pulse output starts at R2 8 and R2 9 PLSO When direction input to R4 2 is ON pulse changes to reverse If speed change input is ON at R4 3 output pulse frequency changes Timing Diagram Pulse output changes in reference to the input status of each signal as illustrated below PLSO Enable si i i D pA meee Pulse output starts when edge rise of Start signal is R4 0 R3 8 detected while Enable signal is ON PLSO Start signal i nnn oe R4 1 R3 12 i PLSO Direction BN oo signal R4 2 R2 0 Speed change input d esa changed etl it R4 3 Speed changes Speed changeas tp A PLSO A Pulse 8 output R2 8 When direction changes PLSO B Direction 1 pulse is deleted control signal R2 9 Output of forward pulse Output of reverse pulse Shared Memory Setting PLS PWM setting Pulse output form is determined by PLS PWM setting In this example enter FFFFFFF8 into shared memory addresses 320 and 321 140h and 141h because in data refreshing direction control mode pulse output starts from R2 8 and R2 9 PLSO when PLSx Start signal edge rises or data is refreshing Shared
32. C gt P x2 target values ECCE NNNM Pulse outputfunction Noe None 4M TOO KHz Pri romeo Noe ome 43K Reference Manuals NX70 Controller User Manual NX7 NX70 Instruction Set Reference Manual WinGPC Software User Manual Click HELP on the WinGPC S W screen or contact your local distributor Pulse I O Unit Functions Features and Functions Features NX70 PLC Pulse I O unit is a special unit that provides easy implementation of pulse output and high speed counter functions The main features of pulse I O unit include the following Pulse I O unit provides high speed counter functions with various other functions as follows NX70 PULSE4 General I O Function It operates as mixed I O unit See Chapter 3 Input Time Constant Function See Chapter 4 Set the effective pulse width of input signal C b Counter Function ount pulse number See Chapter 5 Comparison Output Function See Chapter 6 Compare pulse number and set value and output the results Pulse Output Function Pulse output See Chapter 7 NX70 PLC Pulse output unit PWM Output Function NX70 PULSE4 PWM output See Chapter 8 Pulse output and PWM output are only available to pulse I O unit Be careful because this function is NOT available for High performance High speed counter unit 4CH System Configuration Without Losses Unit I O terminals that are not allocated to
33. Direction control comparison output Individual output Edge rise of PLSx start signal or data Direction control refresh Individual output Individual output 1010 pio B 1100 Invalid Invalid avalide por D mo AA a Do not use this setting oO O O O O O 2 Initial value on power input is set to unused Shared Memory Area Setting Example For each output PLSO PWMO to PLS3 PLS PWM Setting range PWM3 4 bits are allocated PWM output H4 Pulse output direction control mode HO Data change on rising edge of start H1 Data change on rising edge of start or comparison output H2 Data change on rising edge of start or data refresh PLS3 PLS2 PLS1 PLSO Pulse output direction control mode PWM3 PWM2 PWM1 PWMO ane PLS H4 Data change on rising edge of start PWM 320 321 H6 Data change on rising edge of start setting ALONE TAIN or comparison output H8 Data change on rising edge of start or data refresh Pulse output individual output mode H5 Data change on rising edge of start H7 Data change on rising edge of start or comparison output H9 Data change on rising edge of start or data refresh HF Unused PLS PWM flag Pulse output status can be monitored by reading the bit of this address CH3 flag CH2 flag CH1 flag CHO flag Address UU aS ONA AO Y SSE UON 142h 143h 322 323 b31 to b24 b
34. E 1 CMPO is ON when current value gt set value Setting the comparison output set value Setting the Comparison output set value to be compared with Counter current value In the example CMPO is gained as output when counter current value reaches 500 Enter K500 H1F4 into shared memory addresses 288 and 289 148h and 149h Two values K9500 H251C and K10000 H2710 are entered in turn every time comparison coincidence CMPO is ON Shared memory 288 289 120h 121h settings Increase decrease end pointer bit 32 16 15 dud Set value L3 pp p s 61 13 Settings K 500 Shared memory 288 289 120h 121h settings Max speed end pointer bit 32 16 15 Shared memory 288 289 120h 121h settings Stop pointer bit 32 16 15 0 Setting item Comparison output set value CMPO setvaue 0 0 o 0 2 7 J 0 Settings K 10000 PLS PWM Setting Pulse output form is determined by PLS PWM setting In this example enter FFFFFFF6 into shared memory addresses 320 and 321 140h and 141h because in frequency speed changing direction control mode pulse output starts from R2 8 and R2 9 PLSO when PLSx Start signal edge rises or in comparison output mode Shared memory 320 321 140h 141h settings bit 32 16 15 Setting item Unused Unused Unused Unused Form Form Form Form ee wn du Data E with Settings Unused Unused Unused Unused Unused Unused
35. I O units are installed Ex When a Pulse I O unit is installed next to two I O units on a CPU backplane Pulse I O unit SlotNo 0 Power O O H 5 B a nn ee 2 ee H ss HH H 5 5 HH H HH HE HH ss HH 5 ss HH HH ss lt IOPEN 28 N S 8 B 328 0000 000009 Qaz E 9ooo 9 9 Voooo 9 2 ues m CPU backplane RO 0 R40 R6 0 R10 0 R11 0 to to oe to to R3 15 R5 15 R8 0 R10 15 R11 15 to R9 15 Ex When a Pulse I O unit is installed next to four I O units on a CPU backplane Pulse I O unit SlotNo 0 4 2 3 8 SSH Sl mme IIS E E UL eres lll gt SHH AAA GA HP gt 3 S a dam Y 0 z 3 E UL TTL MI 2 iS a Ur Semen s r ur y ES o CA m
36. It may cause an explosion Please fasten cables with terminal bolts Do not use the product under conditions that do not meet correct environmental standards Make sure you connect grounding cables Do not touch terminals when electric current Is flowing NX 70 Pulse I O Unit Installation Environment Nao OO not install your unit if any of the following conditions are present Ambient temperature outside the range of 0 to 55 C 32 to 131 F Direct sunlight e Humidity outside the range of 3096 to 85 non condensing Chemicals that may affect electronic parts Excessive or conductive dust or salinity High voltage strong magnetic fields or strong electromagnetic influences Direct impact and excessive vibration Nai nda Precautions for Electrostatic Excessive static electricity can be generated in dry AN conditions so please make sure to discharge electrostatic with other materials like grounded metal bars before contacting unit Maio Cleaning Unit Do not use thinners which can damage or degrade PCB circuit board Comparison between High speed Counter unit 1CH or 2CH and Pulse I O Unit pee ON 1CH 2CH 4CH 4CH channels Highest Max 100 KHz Max 200 KHz Max 200 KHz counting speed High speed CoU rane 24bit signed Binary format 32bit signed Binary format counter g 9 16 777 216 to 16 777 215 2 147 483 648 to 2 147 483 647 EXA output C P C gt P C P
37. M output such as output frequency are configured in shared memory After shared memory data is configured pulse output starts when PWM control signal is turned on by I O operation Enter PLS control signal pum Enable signal e Start signal JUUUUUUUUL below CHO PLSO output or PWMO output e CH 1 PLS1 output or PWM1 output e CH 2 PLS2 output or PWM2 output e CH 3 PLS3 output or PWM3 output PWM Output Function Configuration e To use PWM output function Step 1 PLS PWM setting of shared memory Step 2 PLS PWM frequency setting of shared memory and Step 3 PWM Duty setting of shared memory are needed e Beside shared memory setting Enable and Start signals are needed to be controlled with PWM control signal Step 1 Shared Memory Setting PLS PWM setting Set PWM output form by shared memory PLS PWM settings Address 320 321 140h 141h PLS PWM b31 b27 b23 b19 b15 b11 b7 b3 Setting b28 b24 b20 b16 b12 b8 b4 bO PLS 0 PWM 1 setting Y PLS 1 PWM 1 setting PLS 2 PWM 2 setting PLS 3 PWM 3 setting Unused Unused Unused Unused Pulse output setting PWM PLS Refresh on edge rise of PLSx start signal Edge rise of PLSx start signal or comparison output Edge rise of PLSx start signal or data refresh Reserved area Direction control Refresh on edge rise of PLSx start signal Individual output PLS Edge rise of PLSx start signal or Direction co
38. Maximum Value for OEMs CONTROLS NX70 CPU750 RUN ERROR POWER I S PROG BATT TEST ALARM BREAK INIT an dA a Em NL re XT0 MWLINK NX70 MN Kung m NX70 CPU70p2 y PWR ALARM 90 COM PLC Link T il I HAS Ste P ERROR 50 02 En ia ERA SPEED ie R02 ss Programmabl 0 o PROG c RM E RD e ED POWER v w Mode TERM ERRAI ERAZ Controller co pr A c Cow x W2 Mode M 8 COM2 AS2320 m oe il i i j EE Per T TOOL P r m m E RS2320 B RE EL ae een m m J RS485 me Y E E Li Lo Mu a um l L E OE MAX NX70 Pulse I O Unit 4CH NX70 PULSE4 User Manual Important User Information Solid state equipment has operational characteristics differing from those of electromechanical equipment Because of these differences 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 a
39. PLSO A Pulse TAA ATIN mmm rmm An output R2 8 PLSO B Direction control signal R2 9 ATTENTION i When pulse output is internally connected to counter the input mode of counter is automatically configured to the pulse output Be careful because previously configured counter input mode is ignored e Within the internal connection counter and pulse output are fixed at the corresponding CH Shared Memory Setting Counter setting Setting the operation mode for each counter CH In this example counter functions is used in direction control mode output pulses are counted via internal connection and FFFFFFO2 Is recorded in shared memory address 256 and 257 100h and 101h Shared memory 256 257 100h 101h settings bit 32 16 15 0 External input RO 7 Counter number Functions Functions Functions Input Functions Setting item mode x mode x mode sering ru mem E ion E rnal Settings Unused Unused Unused Unused Unused Unused ecu addi control connection Setting the comparison output point Select the counter CH number and output logic to be used for comparison output function In this example enter FFFFFFFO into shared memory addresses 260 and 261 104h and 105h Results of comparison between counter current value and comparison output set value are gained as output to CMPO Shared memory 260 261 104h 105h settings bit 32 16 15 as cee 1 ee ee AECA A A BR
40. PWM 1 setting PLS 2 PWM 2 setting PLS 3 PWM 3 setting Unused Unused Unused Unused Pulse output setting PWM PLS Refresh on edge rise of PLSx start signal on Refresh on edge rise of PLSx start signal rise of PLSx start signal Edge rise of PLSx start signal or comparison output mw rise of PLSx start signal or data mw Reserved area sid Reserved area sid Refresh on edge rise of PLSx start signal Individual output Individual output PLS Edge rise of PLSx start signal or Direction control comparison output Individual output Edge rise of PLSx start signal or data Direction control refresh Individual output Individual output Invalid Invalid Invalid 1 Do not use this setting 2 Initial value on power input is set to unused ATTENTION Make sure to access shared memory by 2 word unit Nilo See PLS PWM Flag in Appendix B for shared memory addresses Step 2 Shared memory setting PLS PWM frequency setting e Configure frequency of output pulses after PLS PWM setting of shared memory e Frequency is set within the range of 1 Hz to 100 kHz by 1 Hz unit Output turns OFF pulse stop when frequency setting exceeds 131 072 kHz e When frequency is set to 0 Hz and data is refreshed pulse output is stopped PLS 0 PWM 0 frequency setting PLS 1 PWM 1 frequency setting PLS 2 PWM 2 frequency setting PLS 3 PWM 3 frequency setting ATTENTION Address 328 32
41. dresses 328 and 329 148h and 149h because pulse is sent out from R2 8 and R2 9 PLSO at 10 kHz Shared memory 328 329 148h 149h settings bit 32 16 15 0 Setting item PLSO PWMO frequency setting Set value Settings Program Example Configuration Example Program NX70 F001 00 Slot number of the mounted module Pulse4 First 1Scan Write to addresses 320 and 321 140h Slot 0 ON and 141h of the shared memory pulse output mode setting The number of words to be written Address area to write Addresses 320 and 321 140h and 141h of Pulse4 module Write set value into addresses 328 and 329 148h and 149 F001 00 D W102 First S 10000 Output to frequency 10 000Hz 1Scan Write to addresses 328 and 329 148h ON and 149h of the shared memory TO20 328 output frequency setting 92 22 The number of words to be written FR W102 Address area to write R004 00 R003 08 CHO pulse output enabled UT R004 01 R003 12 CHO pulse output start OUT R004 02 IC CHO pulse direction control ko Use Pulse Output Function Frequency Change Overview Install Pulse I O unit in slot No 0 32 points input unit OV 24V DC Direction signal Enable input PLSO PLSO direction P fhe ai a eo Enable signal H E PLSO Enable Start input PLSO aaa art signa E ja PLSO start Direction input PLSO Occupied I O areas Pulse train output R28 Pulse output PLSO
42. ed as input even though counter function is in use CHx IN A CHx IN B Counter Function Input count signal of counting operation Count signal input is IN A IN B There are three input modes 1 Direction control 2 Individual input and 3 Phase input CHX Clear ueste mondes Counter Function Input when counter current value is to be cleared Count current value is cleared to zero 0 with this input CHX MaSK ieissa Counter Function Pause counter When this input turns on counter is paused Internal input RLOTORLETD iz es Input This monitors signals from each function such as comparison output CMPO to CMP7 Comparison Output Function The comparison result of comparison output set value in shared memory and counter current value can be monitored by R1 0 to R1 7 Counter current value Comparison output set value Comparison output OFF Counter current value Comparison output set value gt Comparison output ON Comparison output ON OFF can also be set as reverse operation PLSx A PLSx B Pulse Output Function Pulse signals from pulse output function can be monitored with R1 8 to R1 15 This input reflects pulse signals output to I O connector as internal input PWM osoren PWM output function PWM signals from PWM output function can be monitored with R1 12 to R1 15 This input reflects PWM signals output to I O connector as internal input Externa
43. ernal connection between the counter and pulse PWM output is fixed on the CHs for counter and pulse PWM output e When pulse PWM output are internally connected to counter the input mode of counter is automatically configured to the input mode Be careful that previously configured counter input mode is ignored Step 2 Counter Control Signal e Counter functions can set mask or clear with counter control signal e here are two types of counter control signals as follows Control by external input terminal and Control by programming Both allow counter control Control by external input terminal Control Signals External input terminal Input External terminal allocation Subject Control counter events A3 R02 cuo Count current value is cleared to 0 with input ON A3 e Count current value is cleared to 0 with input ON Control by programming Control Signals Internal output terminal Output R3 3 Mask Count is paused with output ON ATTENTION Be careful that when counter output is internally connected the control input by external terminal from I O connector is ignored Read Counter Current Value e Current value of each counter is stored in shared memory as described below e Use the READ instruction reading data from high performance units to read the current value by 2 word units Address 264 265 108h 109h Counter CHO Current value K 2 147 483 648 to K 2 147 483 647 Address
44. es 260 and 261 104h and 105h Shared Memory 260 261 104h 105h Settings bit 32 16 15 0 ai eee ee fe te se 152 2 eninge 1 CMPO is ON when current value gt set value first set shared memory for Comparison Output Set Value Otherwise coincidence output is generated at the time of data setting if the comparison output condition is met as in the case that counter initial value and comparison output set value are both 0 Program Example Configuration Example Program for comparison output function NX70 Pulse4 Slot 0 Slot 1 DLET D W100 Fj S SFFFFFFOD t E F001 00 Data setting W100 and W101 Slot number of the mounted module Write to address 256 100h counter function setting First 1Scan ON TO 0 256 The number of words to be written Write set value into addresses 256 Address area to write and 257 100h and 101h 288 and 289 120h and 121h and 260 and F001 00 261 104h and 105h of Pulse4 module Data setting W102 and W103 TO 0 288 SZ 2 FR W102 Store the values of W102 and W103 into address 288 120h comparison output set value F001 00 D S W104 Data setting W104 and W105 FFFFFFF4 TO 0 260 SZ 2 FR W104 Store the values of W104 and W105 into address 260 104h comparison output set value Pulse Output Function Pulse Output Function What is Pulse Output Function e Pulse output function
45. esses Step 2 Shared Memory Setting for Comparison Output Point Select the counter channel number and output logic for each comparison output point Address 260 261 104h 105h b31 b27 b23 b19 b15 b11 b7 b3 b28 b24 b20 b16 b12 b8 b4 bO Comparison output setting Comparison output CMPO setting Comparison output CMP1 setting Comparison output CMP2 setting Comparison output CMP3 setting Comparison output CMP4 setting Comparison output CMP5 setting Comparison output CMP6 setting Comparison output CMP7 setting Comparison Output Setting ON when current value lt set value Used ON when current value gt set value Invalid Invalid Do not use this setting Initial values on power input are set as unused When using this setting regardless of counter function use setting ON OFF be careful that comparison output set value and counter current value are compared When setting the comparison output function make sure to first set shared memory for Comparison Output Set Value Otherwise coincidence output is generated at the time of data setting if the comparison output condition is met as in the case that counter initial value and comparison output set value are both 0 o See Shared Memory Areas in Appendix A for shared memory addresses Comparison Output Function with Counter Overview Install Pulse I O unit in slot No 0 Occupied I O areas Comparison
46. et value value Frequency speed setting changes to 0 when counter current value coincides with set value Sending pulse output in direction control mode Turn ON Enable input at R4 0 and Start input Pulse output starts at R2 8 and R2 9 PLSO Output pulses are feedback to high speed counter inside the unit If a pre set value is reached pulse stops Pulse output diagram PLSO Start input R4 1 j Certain number of pulses is sent out when Start signal is ON 10000 pulse 10000 pulses at 1 kHz are sent out by Start input ATTENTION i When the number of output pulses is extremely small pulse may not stop at the pre set value due to internal processing scan time delay PAN e When pulse output is internally connected to counter the input mode of counter is automatically configured to the pulse output Be careful because previously configured counter input mode is ignored e Within the internal connection counter and pulse output are fixed at the corresponding CH Timing Diagram Pulse output changes in reference to the input status of each signal as illustrated below PLSO Enable signal AN Y R4 0 R3 8 777777 Pulse output starts when edge rise of Start signal is i detected while Enable signal is ON PLSO Start signal R4 1 R3 12 PLSO Direction signal R4 2 R2 0 A NA U output R2 8 PLSO B Direction control signal R2 9 go gt Output o
47. f forward pulse Output of reverse pulse Shared Memory Setting Counter setting Setting the operation mode for each counter CH In this example counter functions is used in direction control mode output pulses are counted via internal connection and FFFFFF02 is recorded in shared memory address 256 and 257 100h and 101h Shared memory 256 257 100h 101h settings bit 32 16 15 0 External input Counter number TE Functions Functions Functions Input Functions Setting item mode aing mode x mode PME MIC Ss Settings Unused Unused Unused Unused Unused Unused mor es control connection Configuration of comparison output set value Setting the Comparison output set value to be compared with Counter current value In the example CMPO is gained as output when counter current value reaches 10000 Enter K10000 H2710 into shared memory addresses 288 and 289 148h and 149h Shared memory 288 289 120h 121h settings bit 32 16 15 0 Setting item Comparison output set value CMPO Set value Settings Setting the comparison output point Select the counter CH number and output logic to be used for comparison output function In this example enter FFFFFFFO into shared memory addresses 260 and 261 104h and 105h Results of comparison between counter current value and comparison output set value are gained as output to CMPO Shared memory 260 261 104h 105h settings bit 32 1
48. figuration and Design Verification of the Unit Slot No and I O Number Allocation Verification Occupied I O Area As with other I O units NX70 Pulse I O units also use the allocation for input R output R NX70 Pulse I O units occupy 32 input RO 0 to R1 15 and 32 output R2 0 to R3 15 points Occupied I O area configuration is as follows Ex When Pulse I O unit is installed in slot O NX70 PULSE4 64 occupied points 32 points input 32 points output From them 16 points are allocated for input connector and 16 points for output connector Input RO O to R1 15 RO to R1 Output R2 0 to R3 15 R2 to R3 NX70 PLC Pulse I O Unit NX70 PULSE4 Pulse I O Unit I O Allocation Table Input Allocation NX70 Pulse I O Unit NX70 PULSE4 External Terminal t mn ehz mask md a 4 IN Qo oO Comparison CMPO ENENEN Comparison CMP1 DEI Comparison CMP2 DEED Comparison CMP3 DEED Comparison CMP4 DENM Comparison CMP5 Pe Comparison CMP6 Unit 7 Comparison CMP7 Internal I O PWMO PWM 1 aia sa paz GG No input allocation The I O number allocations above are applied when NX70 ATTENTION PLC Pulse I O unit 4CH is installed in slot 0 I O number can differ depending on the installation slot Detailed Descriptions on Occupied I O points External Input ROO to ROTS is Input Operated as input It can be monitor
49. g KO to K100 PWM1 Duty setting PWM 2 Duty setting PWMI3 Duty setting ATTENTION Address 346 347 15Ah 15Bh KO to K100 Address 348 349 15Ch 15Dh KO to K100 Address 350 351 15Eh 15Fh KO to K100 Make sure to access shared memory by 2 word unit Do not set a value out of the permitted range It may cause errors Error detection upper limit of the unit is 1048 575 kHz 1048 575 kHz FFFFFh When setting exceeds the limit the value based on the lower 20 bit is applied Step 4 PWM control signal e After shared memory setting Enable and Start signals are needed to be controlled with PWM control signal Enable signal Enable signal determines valid stop of PWM output ON PWM output valid OFF PWM output stop Start signal Start signal starts PWM output and changes pulse frequency and Duty Frequency can also be changed at the time of comparison coincidence or data refresh by Pulse output setting This signal is valid only when Enable signal is ON It is invalid when Enable signal is OFF When both Enable and Start signals are ON pulse output is permitted First ON of Start signal PWM output start Later OFF gt ON edge Change of output pulse frequency and Duty e Output allocation for each control signal is shown in the table below Control signal allocation table ru e Se ou a DUTA PWMO PWM1 OFF PWM output stop Enable control R3 10 PWM2 ON PWM output
50. hared memory addresses 260 and 261 104h and 105h Shared Memory 260 261 104h 105h Settings bit 32 16 15 tr pens e o d om Jom go ow qx 1 NK NN Comparison Comparison 1 CMPO is ON when current value gt set value Position Control by Data Table Overview Install Pulse I O unit in slot No 0 16 points input unit 0 V 24V DC 16 points output unit Start input T LL Eon a mi d Emergency stop HE ma Fe SR S O 0 A EE Count phase signals CERO NA R0 0 cH from encoder H eS e Motor Encoder j X Inverte CMPO R20 Start Stop gt High Low peed CMP1 R21 Mc Occupied I O area po R1 R2 R3 Reverse instruction In the example position is controlled as absolute values according to the set values in data table Speed decreases 300 pulses before the stop point Data table is organized as follows and deceleration point value relative pulse value is also registered W10 W11 K 300 Speed turning point W12 W13 K 2000 Target value 1 Also pulse output is not used and inverter start stop is controlled by CMPO signal and high low speed is controlled by CMP1 signal Meyi For more precise measurements pulse output function can be used and the inverter can be replaced with a servo drive Timing Diagram Count value and output change according to the input status of each signal as illustrated below Dece
51. hen counter current value coincides with set value via internal connection of pulse output and counter CMP output for PLSx PWMx should be set to same CH Program Example Configuration Pulse4 X16D CPU Slot 0 Slot 1 After setting mode for addresses 320 and 321 140h and 141h of Pulse4 module make an attempt to change speed by setting frequency per step in addresses 328 and 329 148h and 149h Example Program F001 00 First 1Scan ON F001 00 First 1Scan ON F001 00 F001 00 R004 00 R004 01 R R003 12 R004 01 DLET D W100 f S FFFFFF02 a TO 07 256 F SZ 2 E FR W100 DLET D W102 S 10000 TO 0 288 SZ 2 FR W102 DLET D W104 S FFFFFFFO TO 0 260 SZ 2 FR W104 DLET D W106 E S FFFFFFF6 TO 0 320 SZ 2 FR W106 R003 08 UT DLET D W108 S 1000 TO 0 328 SZ 2 FR W108 D W110 S 0 TO 0 264 SZ 2 FR W110 DLET D W112 S 0 TO 0 328 SZ 2 FR W112 R003 12 UT Set counter function to internal connection Slot number of the mounted module Write to addresses 256 and 257 100h and 101h of the shared memory counter function setting The number of words to be written Address area to write Set comparison output to 10 000 Write to addresses 288 and 289 120h and 121h of the shared memory comparison output set value and output CMPO when counter cour
52. hich provides high performance I O with stronger noise immunity External Input External Output RO O to RO 15 R2 0 to R2 15 POWER Q O NX 70 Programmable Controller COM RS232C lt I OPEN TOOL RS232C vD DdD a E a 6006 6006 BES 9 1oooo 9 9 1oo00 9 9 V w 00000000000000000000 u n 00000000000000000000 n Nir e The l O number allocations above are applied when Pulse I O unit is installed in slot 0 How to use General I O Function All I O of Pulse I O unit can be used for general I O function But when high performance functions are allocated such as high speed counter function the allocated functions have higher priority Using Method e Special settings such as mode setting switch or shared memory settings are not needed for general I O unit usage Use with initial setting e When Pulse I O unit is installed in slot 0 input RO 0 to R 15 and output R2 0 to R2 15 can be used for external I O contacts aaa Terminals not allocated for functions can be used for general I O which provides system configuration without losses inc
53. ignal is signal R4 0 R3 8 detected while Enable signal is ON PWMO Start signal R4 1 R3 12 When Enable signal goes OFF during pulse output pulse waveform is sent out normally RR QQQ_ _ PWMO Pulse output R2 12 Duty 50 pulse output Output number IC a aa tart signal PLS PWM frequency setting This setting determines the frequency of PWM output In this example enter K10000 H2710 into shared memory addresses 328 and 329 148h and 149h PWM output starts from R2 12 PWMO at 10 kHz Shared memory 328 329 148h 149h settings bit 32 16 15 0 Setting item PLSO PWMO frequency setting Setvalue 0 0 0 o 2 7 1 PWM Duty Setting This setting determines Duty of PWM output In this example enter K50 H32 into shared memory addresses 344 and 345 158h and 159h PWM output starts from R2 12 PWMO at 5096 Duty Shared Memory 344 345 158h 159h Settings bit 32 16 15 0 Shared Memory Setting PLS PWM Setting Pulse output form is determined by PLS PWM setting In this example enter FFFFFFFO into shared memory addresses 320 and 321 140h and 141h In data refreshing direction control mode PWM output starts from R2 12 PWMO when PLSx Start signal edge rises Shared memory 320 321 140h 141h settings bit 32 16 15 Program Example Configuration NX70 Pulse4 X16D RO 3 CPU Slot 0 Set addresses 320 and 321 140h and 141h of Pulse4
54. ime Input time constant constant constant constant constant constant constant constant settings for settings for settings for settings for settings for settings for settings for settings for R0 14 and R0 12 and RO 10 and R0 8 and RO 9 RO 6 and RO 7 RO 4 and RO 5 RO 2 and RO 3 RO 0 and RO 1 RO 15 RO0 13 RO 11 i Input Time Constant Setting 8 Ls T PBs PBs Invalid Invalid Do not use this setting 2 Initial value on power input is set to unused Shared Memory Area Setting Example Input time constant 316 317 13Ch to 13Dh For inputs RO 0O RO 1 to RO 14 R0 15 4 Input time constant setting range bits are allocated for each input HO 4 ps H2 16 us H1 8 ps H2 16 ps H2 32 ys HF Unused Output form PULSE PWM Setting Set PWM output form by shared memory PULSE PWM settings Ko 321 141h UN Jf 320 140h NN 31 aso ras as 2 23 22 o 9 18 te 15 oo 12 11 10 oo e es o osf os ez 01100 Se oe EAN YM Unused CH3 CH2 CH1 CHO PLS PWM PLS PWM PLS PWM PLS PWM setting setting setting setting e Pulse output setting PWM PLS Refresh on edge rise of PLSx start signal on Refresh on edge rise of PLSx start signal rise of PLSx start signal Edge rise of PLSx start signal or comparison output pec rise of PLSx start signal or data pec Reserved Refresh on edge rise of PLSx start signal Individual output Individual output Edge rise of PLSx start signal or
55. ion Input signal whose pulse width is smaller than the effective pulse width is considered noise e Effective pulse width can be set by four constants in two point units for I O connector as described below Effective Pulse Max count Setting External input terminal Width Wys NX70 Pulse output unit 1 A1 A2 Input allocation RO O RO 1 1 A3 A4 Input allocation RO 2 RO 3 1 A5 A6 Input allocation RO 4 R0 5 1 A7 A8 Input allocation RO 6 RO 7 1 B1 B2 Input allocation RO 8 RO 9 Warmare Wormers 1 B3 BA Input allocation RO 10 R0O 11 it 11 B5 B6 Input allocation RO 12 RO 13 1 B7 B8 Input allocation RO 14 RO 15 e Input time constant function prevents input errors caused by noise by setting the effective pulse width of input signals See Chapter 4 for detailed settings for input time constant F Input signal whose pulse width is smaller 5 7 than the effective pulse width is considered doo rm t RO 0 Terminal block input c EN an input error noise t 1 4 RO 0 Signal after time constant setting d p p constant setting High speed Counter Function Pulse I O unit has four high speed counter channels There are three input modes for counting Input mode can be set for each CH Direction control Counter value changes with pulse train and direction signals ta tb tc td NN LT T I IN A off MESSEN IN B Count numbe
56. l Terminal 111 Unit Internal I O Output Allocation NX70 Pulse I O unit NX70 PULSE4 comparo CPI PLS1 direction ENNIO CIEL Comparison CMPS PLS3 direction Comparison CMP4 Comparison CMPS Comparison CMPS E 1 7 BEEN PLSO A BEEN PLSO B BEEN PLS1 A BEEN PLS1 B BEEN aa NECEM A PLS2 A PLS2 B PLS3 A PLS3 B AAA AAA AAA IC NENNEN A A NENNEN SSS R30 CHOSof Clear P31 CHO Sof Mask ST P82 CH1Sof Clear AA Pao CHiSoRMask 0 20 PE E O MN ET A A R3 6 CH3SofClr DAN R37 CH3Sof Mask pa OR A o NENNEN NENNEN p oT EE R3 8 PLSO enabled PLS1 enabled PLS2 enabled PLS3 enabled PLSO start PLS1 start PLS2 start PLS3 start Indicate the connector pins on which the comparison results are directly output in order to send to an external device But the signal states are saved in the input contacts R1 0 to R1 7 so that you can monitor them with the programming software BECK CJ rr mm T oj a PP A Y No output allocation The I O number allocations above are applied when NX70 ATTENTION PLC Pulse I O unit ACH is installed in slot 0 I O number can differ depending on the installation slot Detailed Descriptions on Occupied I O Points External Output R2 0 to R2 15 ase Output PLSx direction CMPO to CMP7 PLSx A PLSx B
57. le Write to the mounted Pulse module shared memory address 264 108h The number of words to be written Address area to write SZ 2 Input the values of W20 and W21 of FR W20 CPU into address 264 108h of Pulse4 module CHO result value Count Function Available as Direction Control Mode Overview Install Pulse unit in slot No Pulse train input UU CHO IN A Ro Direction control signal input UUL CHO IN B OV 24V DC Occupied I O areasa Clear instruction fi CHO clear R02 Mask instruction A CHO Mask o3 Input pulse train in RO O and direction control signal in RO 1 and measure the count number Counter current value is cleared with RO 2 clear instruction and count operation is paused with RO 3 mask instruction Timing Diagram Count value changes according to the input status of each signal as illustrated below Count value changes at the pulse input edge rise time CHO IN A RO 0 CHO IN B RO 1 CHO Clear RO 2 CHO Mask RO0 3 Count stops while mask signal is ON 000 e Count increases with RO 0 Count decreases Count increases with pulse edge rising and with direction direction control OFF direction control OFF control ON Reset count value with clear signal ON Shared Memory Setting Counter setting Setting the operation mode for each counter CH In the example pulse train is in
58. leration starts K300 pulses prior to each target value 1500 2000 Start R4 0 CMPO operation R2 0 Direction R5 0 CMP1 High speed R2 1 Shared Memory Setting Counter Setting Setting the operation mode for each counter CH In the example the phase signal from encoder is input to R0 0 and R0 1 and counter function is used in 1 multiplication phase input mode therefore enter FFFFFF20 to shared memory addresses 256 and 257 100h and 101h Shared Memory 256 257 100h 101h Settings bit 32 16 15 sica ms wu ms ws ms f mu A Counter number Setting item Functions Input Functions Input Functions Input Functions E NEG D ME p MN NN p Set value input input Setting the Comparison Output Set Value Setting the operation mode for each counter CH In the example K2000 H 7D0 K 1500 H FFFFFA24 K 2000 H FFFFF830 K3000 H BB8 KO H 0 are input to shared memory addresses 288 and 289 148h and 149h in sequential order Shared Memory 288 289 120h 121h Settings Target Value 1 bit 32 16 15 0 ee Setvalue 0 o o o o 2 D o Settings Shared Memory 288 289 120h 121h Settings Target Value 2 bit 32 16 15 0 Setting item Comparison output set value for CMP1 Set value P F a 2 4 Settings Stove Shared Memory 288 289 120h 121h Settings Target Value 3 bit 32 16 15 0 d saves E n wm qp oe qnos p Tv
59. luding counter functions and sensor input only with a single Pulse I O unit Input Time Constant Function Input Time Constant Function What is Input Time Constant Function e Setting the effective pulse width for the input signals from external input terminal Input signal whose pulse width is smaller than the effective pulse width is considered noise e lime constant can be selected from the following and width signals over the set value are recognized as signals 1 4 ys 2 8 us 3 16 us 4 32 us e Time constant can be set individually for each of 8 external input terminal groups ra EN B1 B2 RO 8 R0 9 B3 B4 RO 10 RO 11 B5 B6 RO 12 R0 13 B7 B8 RO 14 RO 15 NX70 Pulse I O unit NX70 PULSE4 Signals whose pulse width is smaller than the effective pulse width are considered as input error noise TTT lii Terminal input signal d N eu as Signals after time constant setting E O e set time constant Signal output delays as time constant IMPORTANT ero functions can be used along with counter Input Time Constant Functions e To use input time constant functions shared memory setting is needed Using Method e Set input constant for 8 external input terminal groups by setting shared memory e Input time constant is set for external output terminal so function allocations for each of input RO O to R0 15 settings are also valid Counter input Input
60. memory 320 321 140h 141h settings bit 32 16 15 Setting item Unused Unused Unused Unused 91M Form Form Form ee setting setting setting L NS by Start Settings Unused Unused Unused Unused Unused Unused Unused signal or data change Direction control PLS PWM frequency setting This setting determines the frequency of PLS PWM pulses In this example enter K10000 H2710 into shared memory addresses 328 and 329 148h and 149h because pulse output starts at R2 8 and R2 9 PLSO at 10 kHz At the moment when speed change input turns ON at RO 3 re enter K20000 H4E20 Shared memory 328 329 148h 149h settings bit 32 16 15 0 Setting item PLSOPPWMOfrequenpysetting Setvaue 0 0o o o 2 7 73 9 Settings K 10000 Shared memory 328 329 148h 149h settings RO 3 ON bit 32 16 15 0 Setting item PLSO PWMO frequency setting servalve 0 o o o 4 E 2 o Settings K 20000 Program Example Configuration CPU Slot 0 Slot 1 After setting mode for addresses 320 and 321 140h and 141h of Pulse4 module make attempt to change speed by setting frequency per step in addresses 328 and 329 148h and 149h Example Program F001 00 First 1Scan ON F001 00 First 1Scan ON R004 00 R004 01 R004 02 R004 03 R R004 03 F DLET D W100 S SFFFFFFEB DLET D W102 S 10000 TO 0 328 ES SZ
61. n B input IN A OFF and edge rising on B Sao Reset count value with T 7 clear signal ON Shared Memory Setting Counter setting Setting the operation mode for each counter CH In the example the phase signal from encoder is input to R0 0 and R0 1 and counter function is used in 1 multiplication phase input mode therefore enter FFFFFF20 to shared memory addresses 256 and 257 100h and 101h Shared memory 256 257 100h 101h settings bit 32 16 15 0 External input Ro 13 RO12 Ro9 Ros Ros Ro4 RoI ROO Counter URBE Input Functions Input Functions Input Functions Input Functions mode setting mode setting mode setting mode setting Setting item si n oe sus Recs m input IMPORTANT In phase differential input mode the input pulse magnification can be changed with multiplication function See High speed Counter Function in Chapter 1 for details Program Example Configuration Example Program F001 00 NX70 Pulse4 CPU Slot 0 Slot 1 DLET Data setting D W100 First S FFFFFF2 Slot number of the mounted module 1Scan Function setting area of the shared ON memory 256 100h of the mounted module The number of words to be written Address area to write TO 0 256 El SZ 2 FR W100 Input the values of W100 and W101 of CPU into address 256 100h of Pulse4 module counter function setting Comparison Output Function C
62. n control mode Turn ON Enable input at R4 0 and Start input Pulse output starts at R2 8 and R2 9 PLSO When direction input at R4 2 is ON pulse changes to reverse direction Timing Diagram Pulse output changes in reference to the input status of each signal as illustrated below PLSO Enable signal l R4 0 R3 8 i777 Pulse output starts when edge rise of Start signal is detected while Enable signal is ON PLSO Start signal i a B R4 1 R3 12 When direction changes 1 pulse s deleted PLSO Direction signal R4 2 R2 0 PLSO A Pulse output R2 8 Tia PLSO B Direction control signal R2 9 a gt Shared Memory Setting PLS PWM setting Setting the Pulse output mode for PLS PWM setting In this example enter FFFFFFF8 into shared memory addresses 320 and 321 140h and 141h because in data refreshing direction control mode pulse output starts from R2 8 and R2 9 PLSO when PLSx Start signal edge rises or data is refreshing Shared memory 320 321 140h 141h settings bit 32 16 15 0 Setting item Unused Unused Unused Unused FOr Om Fon Form setting setting setting setting peas Data refresh with Settings Unused Unused Unused Unused Unused Unused Unused Start signal Direction control PLS PWM frequency setting This setting determines the frequency of PLS PWM pulses In this example enter K10000 H2710 into shared memory ad
63. nal ON only on Coincidence EQO coincidence Internal signal Shared Memory Setting Counter Setting Setting the operation mode for each counter CH In the example pulse train is input to RO O and direction control signal to R0 1 and counter function is used in direction control mode Enter FFFFFFOO to shared memory addresses 256 and 257 100h and 101h Shared Memory 256 257 100h 101h Settings bit 32 16 15 EXER ms xs ms p ws ms f mu m3 m3 Counter number Setting item o Functions Input Functions Input Functions Input Functions Ft HE NM UN BEN A NM p NECI a Set value songs rr Unused Unused Unused Unused Unused Unused Control Input Setting the Comparison Output Set Value Setting the comparison output set value to be compared with Counter current value In the example the comparison result is output on CMPO when counter current value is 6 Enter K6 H6 in shared memory addresses 288 289 120h 121h Shared Memory 288 289 120h 121h Settings bit 32 16 15 0 Setting item Comparison output set value CMPO Set value E NUN 0 E A A A UNE Settings Setting the Comparison Output Point Select the counter channel number and output logic for each comparison output point In the example counter current value at CHO is compared with comparison output set value and the comparison result is output on CMPO Therefore enter FFFFFFF4 in shared memory address
64. nting the number of output pulses with internal connection of pulse output and PWM output 2 Do not use this setting 3 Initial values on power input are set as direction control for input mode and unused for function setting Shared Memory Area Setting Example For each channel CHO to CH3 8 bits are Setting range for each channel allocated HOO Direction control H10 Individual input 256 to 257 Uu 4 de Counter 100h to 101h H20 Phase input 1 multiplication H30 Phase input 2 multiplications H40 Phase input 4 multiplications HFF Unused 260 261 104h 105h Comparison output point setting Select the counter CH and output logic to be compared with comparison output set value o 260 104h IM tS 261 105h amp St so 20 2e ar a s o fn for 0 17 0 o a ro cfr fo ce 04 f aef oe fon vo E wW ES AEDEM AE AE GQENSEENXUEN E Comparison Comparison Comparison Comparison Comparison Comparison Comparison Comparison output point 7 output point6 output point5 output point 4 output point3 output point 2 output point 1 output point 0 CMP7 setting CMP6 setting CMP5 setting CMP4 setting CMP3 setting CMP2 setting CMP1 setting CMPO setting Comparison Output Setting ON when current value lt set value ON when current value gt set value gt Invalid Invalid O O F Umm ooo Do not use this setting 2 Initial value on power inpu
65. ntrol comparison output Individual output Edge rise of PLSx start signal or data Direction control refresh Individual output Invalid Invalid Invalid O CT AE 1 Do not use this setting 2 Initial value on power input is set to unused ATTENTION Make sure to access shared memory by 2 word unit fens See Shared Memory Areas in Appendix A for shared memory addresses Step 2 Shared memory setting PLS PWM frequency setting e Configure frequency of output pulses after PLS PWM setting of shared memory e Frequency is set within the range of 1 Hz to 30 kHz by 1 Hz unit Output turns OFF pulse stop when frequency setting exceeds 32 768 kHz e When frequency is set to 0 Hz and data is refreshed pulse output is stopped PLS 0 PWM 0 frequency setting PLS 1 PWM 1 frequency setting PLS 2 PWM 2 frequency setting PLS 3 PWM 3 frequency setting Address 328 329 148h 149h PLS K1 to K30000 Address 330 331 14Ah 14Bh PLS K1 to K30000 Address 332 333 14Ch 14Dh PLS K1 to K30000 Address 334 335 14Eh 14Fh PLS K1 to K30000 Step 3 Shared memory setting PWM duty setting e Configure Duty of output pulses after PLS PWM setting of shared memory e Within range of 0 to 100 by 1 unit The value indicates the proportion of ON e 0 means output OFF and 100 means output ON Output OFF when value exceeds 101 Address 344 345 158h 159h PWM 0 Duty settin
66. omparison Output Function What is Comparison Output Function e Compare the comparison output set value and counter current value and the comparison result is output Comparison result output CMPx Comparison output set value lt Counter current value e Comparison result output can be selected from either ON when current value lt set value or current value set value e For Pulse I O unit 8 types of comparison output set values can be set and the comparison counter channels can also be freely selected Therefore if all comparison output set values are set to a single counter a maximum of 8 level comparisons are available Comparison Coincidence output set a E value MEMx Counter current value Pusevo IUUUUUUUL Coincidence No coincidence signal EQx Coincidence Counter current value is compared with pre set comparison output set value and the result is output EOx is an internal processing signal that is not sent outside Count input pulses JUUUUUUUUL Setting Comparison Output Function To use comparison output function Step 1 Shared Memory Setting for Comparison Output Set Value and Step 2 Shared Memory Setting for Comparison Output Point are needed Step 1 Shared Memory Setting for Comparison Output Set Value Set the comparison output set value to be compared with counter current value Comparison output set value for CMPO Compari
67. p C vsus CMP1 821 a Reverse instruction _R5 0 Position is controlled by absolute value In this example position is commanded to 1000 using R4 0 input and 1500 using R4 1 input Speed decreases 300 pulses before the stop point Also pulse output is not used and inverter start stop is controlled by CMPO signal and high low speed is controlled by CMP1 signal ey 3 For more precise measurements pulse output function can be used and the inverter can be replaced with a servo drive Timing Diagram Count value and output change according to the input status of each signal as illustrated below R4 0 ON Target value K1000 Current value lt Target value 1000 Start R4 0 Ma ty CMPO operation R2 0 Direction R5 0 M CMP1 High d Lo speed R2 1 R4 1 ON Target value K 1500 Current value lt Target value 1500 Start R4 0 dL l j CMPO operation R2 0 B Direction R5 0 CMP1 High Y speed R2 1 R4 0 ON Target value K1000 Current value gt Target value CMPO operation R2 0 L Direction R5 0 L CMP1 High speed R2 1 R4 1 ON Target value K 1500 Current value gt Target value Start R4 0 CMPO operation R2 0 Direction R5 0 gt CMP1 High d Lon speed R2 1 Shared Memory Setting Counter Setting Setting the opera
68. put R3 0 to R3 15 CHx Soft Clear CHx Soft Mask PLSx Enable PLSx start PWMx Enable PWMIx start This output is a controlling signal for each function such as counter function It can be used as internal relay when not allocated to any function Counter Function Output when counter current value is to be cleared Counter current value is cleared to zero 0 by this output R3 0 R3 2 R3 4 R3 6 Counter Function Output for counter pause When this output R3 1 R3 3 R3 5 R3 7 turns on counter is paused o Pulse Output Function This signal enables pulse output Pulse output is available while this input R3 8 to R3 11 is ON Pulse Output Function This signal starts pulse output R3 12 to R3 15 Valid only when set to Enable a tiaras PWM Output Function This signal enables PWM output PWM output is available while this inputs R3 8 to R3 11 are ON PWM Output Function This signal starts PWM output R3 12 to R3 15 Valid only when set to Enable Verification of Allocated I O Number and Slot No e O number and slot number are necessary for programming e O number changes with backplane installation location Make sure It is the same as design e For I O allocation See O Number Allocation in Chapter 2 of each PLC system manual I O Number Allocation Verification Check the occupied I O areas of the entire unit where Pulse
69. put signals from an external device to the Pulse I O unit 3 Output Connector NX70 PLC I Relays output signals from the Pulse I O unit to an external device 4 Mode Setting Switch is reseved for future use Mode Setting Switch WD i ON Reserved Status LEDs Unit LED indicates the I O status at the terminals Refer to the table below NX70 Pulse I O unit allocation table NX70 PULSE4 AN 1 0 A A7 A8 8 B1 B2 B3 B4 B5 B6 B7 B8 F cm e ie de a m de de Fe M M a E E A 9 7 E a ME O 49 497 E AE e M M M M de BE M GE M M MMM EE E EE EE 0 M M E MMM ENE NE MMM NENE NE T de BE GE EINE MEE e M M M MT T EEE i dd EN NX70 Pulse I O unit NX70 PULSE4 PLS1 PLS2 CEJA fas mea ue as mes town ar res row mr men mpms ro m ms mem fen mia m mw msm fe ITA fre mem wns Em mw ms was marks No output allocation marks Indicate the connector pins to which the comparison results are directly output in order to send to an external device But the signal states are saved in the input contacts R1 0 to R1 7 so that you can monitor them with the programming software Funct Counter 1 ya j e Tm E 5 b gt gt e a La CHO IN A R2 0 1 CHO IN B 0 2 CHO Clear I 0 3 CHO Mask gt CH1 IN A o CH1 IN B gt N al AZ CH1 Clear A
70. put to RO O and direction control signal to R0 1 and counter function is used in direction control mode Enter FFFFFFOO to shared memory addresses 256 and 257 100h and 101h Shared memory 256 257 100h 101h settings bit 32 16 15 0 Rebel mods ooa 05 non x mop P CD ORO o Counter number CH8 CH2 J CH 1 CH O Setting item Input Functions Input Functions Input Functions Input Functions par AN mode MD mode setting mode setting i Direction Terminal an MEME Unused Unused Unused Unused Unused Unused i E i control Input Program Example Configuration Example Program F001 00 DLET D W100 S 7 TO 0 256 SZ 2 FR W100 NX70 Pulse4 First ES Data setting Slot number of the mounted module Write to the mounted Pulse module shared memory address 265 109h CPU Slot 0 Slot 1 A The number of words to be written Address area to write Input the values of W100 and W101 of CPU into address 256 109h of Pulse4 module counter function setting Count Function Available as Individual Input Mode Overview Install Pulse I O unit in slot No 0 Increase pulse input Bl CHO IN A Ro 0 Decrease pulse input TSE cho i e pori Occupied I O areas RO OV 24V DC R1 R2 Clear instruction R3 a CHO clear R02 Mask instruction CHO Mask R03 Input increase pulse in RO O and decrease pulse signal in RO 1 and measure the count number
71. r CMPO Comparison output Set value for CMP1 Comparison output Set value for CMP2 Comparison output Set value for CMP3 Comparison output Set value for CMP4 Comparison output Set value for CMP5 Comparison output Set value for CMP6 Comparison output Set value for CMP7 Address 288 289 120h 121h MEMO k 2 147 483 648 to K 2 147 483 647 Address 290 291 122h 123h MEM K 2 147 483 648 to K 2 147 483 647 Address 292 293 124h 125h MEM2 K 2 147 483 648 to K 2 147 483 647 Address 294 295 126h 127h K 2 147 483 648 to K 2 147 483 647 MEM3 Address 296 297 128h 129h MEM4 K 2 147 483 648 to K 2 147 483 647 Address 298 299 12Ah 12Bh MEMS K 2 147 483 648 to K 2 147 483 647 Address 300 301 12Ch 12Dh MEM6 K 2 147 483 648 to K 2 147 483 647 Address 302 303 12Eh 12Fh WEE K 2 147 483 648 to K 2 147 483 647 316 317 13Ch 13Dh Input time constant setting e Setthe input time constant for 8 external input terminal groups with shared memory settings e Input time constant is set for external input terminal so function allocations for each of input RO O to RO 15 settings are also valid Counter input i 317 13Dh NR S 316 13Ch e so 29 25 27 o os n s 2 2n o o e se 15 4 e 4 oo oo n o oa on ca or en AA AA A A AAA AS AAA rii REGN EV Input time Inputtime Inputtime Input time Input time Input time Input t
72. r Sw em jm ta tb tc td 2 2 5 us Individual input Count value changes with each input signal at CW and CCW ta tb tc ft on IN A off we FPF LILI L Phase differential Count value changes with the phase differential input on encoder and others des Le is IN A off IN B Count number Oon o n 1 n 2 min ta tb tc td gt 2 5 pis Value for when input time constant filter is set to None IMPORTANT About multiplication There are three types of multiplication for phase differential input mode as following IN A NX70 PULSE4 1 multiplication a mus CHO IN A CH2 IN A Count number IN B IN B Clear Clear Mask Mask IN A E 2 multiplication Ed CH1 IN A mal CH3 IN A Count number ee E ue Clear T Clear Mask Mask IN A 4 multiplication T NX70 PLC Pulse output unit Count number NX70 PULSEA Comparison Output Function e Pulse I O unit has 8 points of comparison output CMPO to CMP7 e Counter current value and comparison set value are compared and the comparison results are output Comparison output set value is set by shared memory MEMO to MEM7 Counter current value lt Comparison output set value gt Comparison output OFF Counter current value gt Comparison output set value gt Comparison output ON NX70 PULSE4 Comparison Output CMPO to 7 Comparison output Coincidence set value MEMx Counter current
73. rved amp z lele 8 ales NS A ol O RB PLSx PWMx frequency setting Address 328 329 148h 149h PLSO PWMO frequency setting For PWM K1 to K30000 Address 330 331 14Ah 14Bh PLS1 PWM1 frequency setting For PM K1 to K30000 Address 332 333 14Ch 14Dh PLS2 PWM2 frequency setting For PWM K1 to K30000 Address 334 335 14Eh 14Fh PLS3 PWMI3 frequency setting For PWM K1 to K30000 PWMN Duty setting Address 344 345 158h 159h PWMO Duty Setting KO to K100 Address 346 347 15Ah 15Bh PWM Duty Setting KO to K100 Address 348 349 15Ch 15Dh PWM2 Duty Setting KO to K100 Address 350 351 15Eh 15Fh PWMI3 Duty Setting KO to K100 NX70 Pulse I O Unit 4CH NX70 PULSE4 User Manual OE M OE MAX Controls CONTROLS Trademarks not belonging to OE Max Controls are WWW o0emax com property of their respective companies Publication OEMax NX70 UM007B EN P May 2005 Supersedes Publication NX70 UMO007A EN P January 2005 Copyright O 2005 OE Max Controls All rights reserved Printed in Korea
74. se value reaches 10000 Comparison output function setting Compare CHO counter course value and comparison output value and output the result to CMPO Write to address 260 to 261 104h to 105h of the shared memory comparison output set value Pulse output format instruction Direction control mode instruction that changes frequency in case of edge rise of PLSx start signal or comparison output Write to address 320 to 321 140h to 141h of the shared memory pulse output format setting CHO pulse output enabled operating at switch R4 0 input Set instruction as output frequency 1 000Hz Write to addresses 328 and 329 148h and 149h of the shared memory output frequency setting Counter course value is instructed to 0 Write to addresses 264 and 265 108h and 109h of the shared memory counter course value Set instruction as output frequency OHz stop Write to addresses 328 and 329 148h and 149h of the shared memory output frequency setting CHO pulse output start Use Pulse Output Function Setting Increase Decrease Position Overview Install Pulse I O unit in slot No 0 32 points input unit OV 24V DC Direction signal PLSO direction R38 Enable signal PLSO Enable R3 12 Start signal PLSO start Pulse train output Enable input PLSO i R40 O Start input PLSO Ru Occupied I O areas R28 Pulse output PLSO A Direction control
75. sends out waves at a frequency randomly selected from 1 Hz to 100 kHz range Setting unit is 1 Hz e There are two output modes as follows 1 Direction control 2 Individual output e n addition Pulse I O unit provides up to 4CH for pulse output But user must choose between pulse output and PWM output so if PWM is selected the number of channels for pulse output is decreased Shared memory Output pulse setting Settings for pulse output such as output frequency are configured in shared memory Enter PLS After shared memory data is configured control signal pulse output starts when PLS control signal is turned on by I O operation Enable signal e Start signal Direction signal JUD UU below CHO PLSO output or PWMO output e CH 1 PLS1 output or PWM1 output e CH 2 PLS2 output or PWM2 output e CH 3 PLS3 output or PWM3 output Setting Pulse output Function e louse pulse output function Step 1 Shared memory PLS PWM setting and Step 2 Shared memory PLS PWM frequency setting are needed e Beside shared memory setting Enable start and direction signals are needed to be controlled with PLS control signal Step 1 Shared memory setting PLS PWM setting Set PWM output form by shared memory PLS PWM settings The Same settings apply when PWM output is selected by pulse function Address 320 321 140h 141h Setting b28 b24 b20 b16 b12 b8 b4 bO PLS 0 PWM 0 setting p PLS 1
76. signal output Stop pulse output at the moment when Counting output set value is reached pulse trains with internal connection R29 Pulse output PLSO B Comparison coincidence signal CMPO Frequency speed setting changes when counter current value coincides with set value Sending pulse output in direction control mode Turn ON Enable input at R4 0 and Start input Pulse output starts at R2 8 and R2 9 PLSO Output pulses are feedback to high speed counter inside the unit If a pre set value is reached pulse stops Locating with 2 level speed shift is available Pulse output diagram 10000 pulses 9500 pulses i lt _ A Sv 500 pulses AA Ee AOS 1 AS Pulse frequency 9000 pulses pos Certain number of pulses is sent out when Start signal is ON By Start input 500 pulses with Max speed around 1kHz are transformed into 10000 pulses at 300 Hz and sent out as output gets near to extreme frequency may not be changed due to delay of internal processing scan time Timing Diagram Pulse output changes in reference to the input status of each signal as illustrated below PLSO Enable signal p R4 0 R3 8 P wa nase ulse output starts when edge rise of Start signal is ON PLSO Start signal R4 1 R3 12 PLSO Direction signal R4 2 R2 0 Low speed pulse ow speed pulse output High speed pulse output outout o
77. son output set value for CMP1 Comparison output set value for CMP2 Comparison output set value for CMP3 Comparison output set value for CMP4 Comparison output set value for CMP5 Comparison output set value for CMP6 Comparison output set value for CMP7 MEMO MEM1 MEM2 MEM3 MEM4 MEM5 MEM6 MEM7 gt e o D eo n N 00 00 N 00 co s N e 2 N 2 gt D o N co e N co NES N N 2 N CO gt L K 2 147 483 648 to K 2 147 483 647 K 2 147 483 648 to K 2 147 483 647 gt o o D 0 o N co N N co Co No DN N O1 5 K 2 147 483 648 to K 2 147 483 647 gt oa oa D o o N N gt pem o D Qo N co O N co N 00 2 N co 2 N cO al N O gt N N gt K 2 147 483 648 to K 2 147 483 647 K 2 147 483 648 to K 2 147 483 647 gt a e D eo e N co 00 N co co a N gt 2 N UJ gt K 2 147 483 648 to K 2 147 483 647 gt D eo n 0 e e Ww e N O 2 N J 2 K 2 147 483 648 to K 2 147 483 647 gt C C D eo Ww e N 0 e 0 N m 2 N TI 2 K 2 147 483 648 to K 2 147 483 647 ATTENTION Make sure to access shared memory by 2 word unit fess See Shared Memory Areas in Appendix A for shared memory addr
78. son output set value CMPO setvalue 0 o o o Oo o o o Settings K 16777216 Fixed Length Processing Overview Install Pulse I O unit in slot No 0 16 points input unit 16 points output unit 0 V 24V DC _ Start input ome d Wr O stop Count phase signals from encoder hs Bl 1 B al s sf pp i of LUN I NN CNN NN is UEM Me of e j THIS ST s TTE e s S S Te e Te ST PET TT Occupied I O area Roller Motor Encoder YU b verte CMP1 R2 1 High Low Speed Cutter operation signal R51 ha CMPO R20 START STOP Lead cable In the example a transfer roller with external cicumference of 10cm and 10cm movement of lead cable by one rotation is used With this roller slow the rotation when lead cable moves 95cm and stop rotation at 100cm 10 rotations In this example the resolution of encoder is 500 pulses rotation Also pulse output is not used and inverter start stop is controlled by CMPO signal and high low speed is controlled by CMP1 signal Meyi For more precise measurements pulse output function can be used and the inverter can be replaced with a servo drive Timing Diagram Count value and output change according to the input status of each Signal as illustrated below Initial value 5000 Initial value 5000 Target value 250 4
79. ssociated with any particular installation OE Max Controls cannot assume 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 damage or economic loss aa identifies information that is critical for successful application and understanding of the product ato identifies information about practices or circumstances that can lead to minor personal injury property damage economic loss or product malfunction However depending on the situation failure to follow the directions accompanying this symbol may also lead to serious consequences 2 Contents Pulse I O Unit Functions 9 Features and FUNCTIONS aisla 9 FUNCHUONS OFO MIE RE Mc 10 Configuration and Limit for Pulse I O Unit ooccccccniccnnccncncnocnncacnnoncnnnnnnns 14 Restrictions Due to Combination of Pulse Output Function 14 Partsand FUNCHONS viele ote teeta attr seu Se ati metus uber rA eof dh aad 15
80. t value to 500 Write to shared memory addresses 288 and 289 120h and 121h comparison output value setting Set instruction as output frequency at 300Hz Write to addresses 328 and 329 148h and 149h of the shared memory output frequency setting Initialize counter course value to 0 Write to addresses 264 and 265 108h and 109h of the shared memory counter course value 4 After output starts the next speed instruction instruction between 1 and 500 is needed After 500 speed at 1000 Hz 5 After 500 pulses operation at 1000Hz next position and speed instruction is needed 6 Operating at current speed after 9500 pulses 7 Set instruction as operation speed at 300 Hz 8 After 9500 pulses operation at 300Hz the next position and speed instruction is needed 9 Operating at current speed After 10000 pulses 10 Set instruction as operation at 0 Hz stop 11 If more than 10000 pulses are output pulse output channel 0 is disabled to stop operation 12 Initialize counter course value to 0 A 9500 R004 01 A W0200 DLET TO 0 328 SZ 2 FR W112 TO 0 288 SZ 2 FR W114 D W116 S 300 l TO 0 328 E SZ 2 FR W116 TO 0 288 SZ 2 FR W118 TO 0 328 SZ 2 FR W120 R003 12 TO 0 264 SZ 2 FR W110 R003 12 OUT When output pulse number is between 1 and 200 set instruction as the next output speed frequency at 1000Hz Ini
81. t is set to unused Shared Memory Area Setting Example Comparison output setting For comparison output 8 points CMPO Setting range for each channel to CMP7 4 bits are allocated for each ON when current value set value 1 HO CHO 2 H1 CH1 HO Negative logic output counter CHO 3 H2 CH2 260 to 261 32 16 15 o 4 H3 CH3 104h to 105h EASESEASESESEZEARAM ON when current value gt set value 1 H4 CHO 2 H5 CH1 3 H6 CH2 4 H7 CH3 CMP7 CMP6 CMP5 CMP4 CMP3 CMP2 CMP1 CMPO 5 HF Unused Counter Current value 264 265 108h 109h Channel 0 264 265 108h 109h Channel 1 264 265 108h 109h Channel 2 below 264 265 108h 109h Channel 3 Current value of each counter is stored in shared memory as described Use the READ instruction reading data from high performance units to read the current value by 2 word units Counter CHO Current value Counter CH1 Current value Counter CH2 Current value Counter CH3 Current value Address 264 265 108h 109h K 2 147 483 648 to K 2 147 483 647 Address 266 267 10Ah 10Bh K 2 147 483 648 to K 2 147 483 647 Address 268 269 10Ch 10Dh K 2 147 483 648 to K 2 147 483 647 Address 270 271 10Eh 10Fh K 2 147 483 648 to K 2 147 483 647 Comparison output set value CMPO to CMP7 e Set the comparison output set value to be compared with counter current value Comparison output Set value fo
82. t signals are ON pulse output Is permitted Direction signal gt Direction signal controls the direction of pulse output OFF Forward ON Reverse Pulse output from PLSx A Pulse output from PLSx A A PLSx B OFF PLSx B OFF ON Reverse Pulse output from PLSx A Pulse output from PLSx B PLSx B ON PLSx A OFF e Output allocation for each control signal is shown in the table below Control signal allocation table O ut put PESO OFF Forward Direction control output PLSx B OFF R2 1 PLS1 Individual output Pulse output from PLSx A Direction control R2 2 PLS2 ON Reverse Direction control output PLSx B ON PLS3 Individual output Pulse output from PLSx B PLSO R3 9 PLS1 OFF Pulse output stop Enable control R3 10 PLS2 ON Pulse output valid R3 11 PLS3 R3 12 PLSO R3 13 PS First ON Pulse output start Start control R3 14 MU HE OFF gt ON edge Output pulse frequency changed R3 15 PLS3 but timing with pulse output cannot be specified Change the signal when pulse is stopped Use Pulse Output Function Overview Install Pulse I O unit in slot No 0 32 points input unit OV 24V DC R20 Direction signal PLSO direction R38 Enable signal PLSO Enable R312 Start signal PLSO start Direction input PLSO Pulse train output R2 R3 R2 8 Pulse output PLSO A Direction control signal output s R29 Pulse output PLSO B Sending pulse output in directio
83. tial comparison output value is 500 and after that output at 1000Hz Write to address 328 to 329 148h and 149h of the shared memory output frequency setting Set comparison output set value to max 9 500 Write to addresses 288 and 289 120h and 121h of the shared memory comparison output set value Set counter course value to 0 Write to addresses 328 and 329 148h and 149h of the shared memory output frequency setting After 10 000 pulses comparison output value setting Write to addresses 288 and 289 120h and 121h of the shared memory comparison output value setting Set instruction as output frequency at 0 stop Write to addresses 328 and 329 148h and 149h of the shared memory output frequency setting CHO reset Pulse enabled Instruct course value as 0 Write to addresses 264 and 265 108h and 109h of the shared memory course value setting CHO pulse output start After initialization of course value PWM Output Function PWM Output Function What is PWM Output Function e PWM output function enables change of output Duty at any frequency by 1 unit within the range of 0 to 100 Available frequency range is 1Hz to 30kHz and setting unit is 1Hz e Pulse I O unit provides up to 4CH PWM output But user must choose between PWM and pulse output so if pulse output is selected the number of CH for PWM output is decreased Shared memory Output pulse setting Settings for PW
84. time h37 b27 b23 b19 b15 b11 b7 b3 constant 28 b24 b20 b16 b12 b8 b4 b0 setting Input time constant settings for RO 0 and RO 1 Input time constant settings for RO 2 and RO 3 Input time constant settings for RO 4 and RO 5 Input time constant settings for RO 6 and RO 7 Input time constant settings for RO 8 and RO 9 Input time constant settings for RO 10 and RO 11 Input time constant settings for RO 12 and R0 13 Input time constant settings for RO 14 and R0 15 Input Time Constant Setting sali Invalid nvali Unused Do not use this setting 2 Initial value on power input is set to unused ATTENTION Make sure to access shared memory by 2 word units Use Input Time Constant Function Overview Install Pulse unit in Ignored as noise g slot No 0 Terminal input e eye signal gt gt so After time constant E ee processing i 13 ta Ignored as noise gt a a gt 0 asa 74s Terminal input 0 signal After time constant Ll processing Set time constant for RO 0 RO 1 input and ignore signals outside the width as noise Shared Memory Setting Time constant setting Set input time constant In the example time constant of 16 ps is set for RO 0 and RO 1 input Therefore enter FFFFFFF2 into shared memory address 13Ch and 13Dh Shared memory 316 317 13Ch 13Dh settings bit
85. tion 67 8 PWM Output Function 73 PYM Output FUNCION S mio omite coins A A A S 73 Use PWM Output Function si ees tei o eee o dd i Rs 77 9 Application Examples 81 Speed IVICASUNIN G e TT T UU 81 Fixed Length rocosa E 83 Position Control by Absolute Value eese 86 Position Control Dy Data Table suscita e Dd BU YEVEDb MEO Ce aetna 89 Appendix A Specifications 93 Performance Specifications List oococoncccncconncconinaniconnonanonanonanenanconanenanens 93 Appendix B I O Contact Points and Memory Map 97 VO Contact POIDES ore EE D bei eei rd datei eb tu Cetus dte en Sas li duod 97 Shared Memory Ale aS sce abs asscadeSauks AEE aE 99 Safety Instructions Please read this manual and the related documentation thoroughly and familiarize yourself with product information safety instructions and other directions before installing operating performing inspection and preventive maintenance Make sure to follow the directions correctly to ensure normal operation of the product and your safety ATTENTION IBN A If this product is used in a situation that may cause personal injury and or significant product damage implement safety measures such as use of fault safe equipment Do not use this product under any conditions exposed to explosive gases
86. tion mode for each counter CH In the example the phase signal from encoder is input to R0 0 and R0 1 and counter function is used in 1 multiplication phase input mode therefore enter FFFFFF20 to shared memory addresses 256 and 257 100h and 101h Shared Memory 256 257 100h 101h Settings bit 32 16 15 Ena ms mu ms p ws ms mr s mi Counter number Setting item Functions Input Functions Input Functions Input Functions mode seming mode sering mode sering prp pu Setti IM MEME ettings Unused Unused Unused Unused Unused Unused input Input Setting the Comparison Output Set Value Setting the Comparison output set value to be compared with Counter current value In this example enter K1000 H 3E8 into shared memory addresses 288 and 289 148h and 149h when R4 0 turns ON and K 1500 H FFFFFA24 into 288 and 289 148h and 149h when R4 1 ON Shared Memory 288 289 120h 121h Settings R4 0 ON bit 32 16 15 pane an Set value MAC OCIO CIO CIAO CIO CI E EC Settings Shared Memory 238 289 120h 121h Settings R4 1 ON bit 32 16 15 did Set value OOOO CO AO O A A CI IC Settings Setting the Comparison Output Point Select the counter channel number and output logic for each comparison output point In the example counter current value at CHO is compared with comparison output set value and the result is output at CMPO and CMP1 Therefore enter FFFFFF44 or FFFFFFOO in s
87. valid R3 11 PWM3 R3 12 PWMO R3 13 PWMY1 First ON PWM output start Start control R3 14 PWM2 OFF gt ON edge Output pulse frequency Duty changed R3 15 PWM3 ATTENTION i Same function is allocated to same location for pulse and PWM control signal A On shared memory PLS PWM setting PLS PWM frequency setting and PWM Duty setting should be arranged in the above order e f not it may not work properly e When frequency or Duty is changed during PWM output new setting applies from the next waveform feysS PLS PWM flag is prepared at shared memory addresses 322 and 323 142h and 143h Pulse output can be monitored by reading the flag in these addresses See PLS PWM Flag in Appendix B for details Use PWM Output Function Overview Install Pulse I O unit in slot No 0 32 points input unit OV 24V DC Enable input PLSO Start input PLSO L R44 Enable signal R3 PWMMO Enable Start signal 3 12 PWMO start PWM Pulse train output UUUUUUUUL R2 12 Pulse train output PWMO Sending pulse output in direction control mode Turn ON Enable input at R4 0 and Start input Pulse output starts at R2 8 and R2 9 PLSO When direction input at R4 2 is ON pulse changes to reverse direction Timing Diagram PWM output changes in reference to the input status of each signal as illustrated below PWMO Enable p Pulse output starts when edge rise of Start s
Download Pdf Manuals
Related Search
Related Contents
MSDS - シグマアルドリッチジャパン IMPERIA_1450-@1@ (Page 1) Samsung CM1329 User Manual GE PDW8400JBB User's Manual ご利用ガイド - eoユーザーサポート User Manual Copyright © All rights reserved.
Failed to retrieve file