background image

<Toc> <Ind>

<4.   Module Access >

4-9

IM 34M6H54-01E

Example 1: Setting $0000 to data position number 20 for the output function in output

channel 1

Bit number

TC040103_06.EPS

Output

channel

Data position

number

1

20

15

0

14

0

13

0

12

0

11

0

10

0

9

0

8

0

7

0

6

0

5

0

4

0

3

0

2

0

1

0

0

0

Example 2: Setting $0001 to data position number 24 for the output function in output

channel 2

Bit number

TC040103_07.EPS

Output

channel

Data position

number

2

24

15

0

14

0

13

0

12

0

11

0

10

0

9

0

8

0

7

0

6

0

5

0

4

0

3

0

2

0

1

0

0

1

Example 3: Setting $1040 to data position number 28 for the output function in output

channel 3

Bit number

TC040103_08.EPS

Output

channel

Data position

number

3

28

15

0

14

0

13

0

12

1

11

0

10

0

9

0

8

0

7

0

6

1

5

0

4

0

3

0

2

0

1

0

0

0

Example 4: Setting $2020 to data position number 32 for the output function in output

channel 4

Bit number

TC040103_09.EPS

Output

channel

Data position

number

4

32

15

0

14

0

13

1

12

0

11

0

10

0

9

0

8

0

7

0

6

0

5

1

4

0

3

0

2

0

1

0

0

0

1st Edition : Feb.01,1999-00

Содержание FA-M3 Series

Страница 1: ...Instruction Manual Y okogawa Electric Corporation IM 34M6H54 01E Pulse Input Module IM 34M6H54 01E 1st Edition Addendum See at the end of this manual...

Страница 2: ...Blank Page...

Страница 3: ...nsure that such circuits are installed external to the prod uct Do not attempt to make modifications or additions internal to the product 7 In cases where the use of this product results in damage or...

Страница 4: ...Conventions Symbol marks used The following symbol marks are used in this manual CAUTION Indicates that the operator must refer to an explanation in this manual to avoid dam age to the modules TIP Giv...

Страница 5: ...should not be used as a Protective grounding terminal Alternating current Direct current Make sure to comply with the following safety precautions Not complying might result in injury death of personn...

Страница 6: ...ng requirement The following marking indicates that you must not discard this electrical electronic product in domestic household waste Product Category With reference to the equipment types in the WE...

Страница 7: ...der Special Module Instructions 4 1 4 1 1 List of Data Position Numbers 4 1 4 1 2 Reading Data READ HRD 4 2 4 1 3 Writing Data WRITE HWR 4 4 4 1 4 Reading Input Relays 4 10 4 1 5 Output to Output Rela...

Страница 8: ...Blank Page...

Страница 9: ...ternal circuit with photocouplers A filter can be selected using software to suppress chattering in the input signals At the count edge either the rising edge or the falling edge can be selected Incor...

Страница 10: ...Blank Page...

Страница 11: ...Format Transistor contact Rated load voltage 12 to 24 V DC Counter value Preset values 1 2 Counter value Preset values 1 2 Counter value 0 return 1 Insulation method Photocoupler isolated all input ou...

Страница 12: ...dicator The following indicators light up channel by channel when the corresponding condition occurs I The input signal goes on O The output signal goes on F0201 EPS Figure 2 1 Front View Internal Cir...

Страница 13: ...m F0204 EPS Figure 2 4 Terminal Screw External Connections Table 2 2 Wire and Terminals Applicable conductor size 0 3 to 0 75 mm2 AWG22 to 18 Wire connection method Crimp on type Wire temperature rati...

Страница 14: ...2 4 Toc Ind 2 Functions and Operation IM 34M6H54 01E External Dimensions 83 2 28 9 2 100 9 Unit mm F0205 EPS Figure 2 5 External Dimensions 1st Edition Feb 01 1999 00...

Страница 15: ...um set value is given by Ring up counter maximum value preset value 2 1 In the above setting if bit 0 is set the ring up counter maximum value will be FFFF see the example below Example When set value...

Страница 16: ...ed or Disabled use output relays Yuuu49 Yuuu53 Yuuu57 and Yuuu61 slot numbers for modules are entered in uuu related to input channels 1 to 4 While the output relay related to the input channel is off...

Страница 17: ...value 2 is applicable as a maximum value of the ring up counter The following gives an example of the coincidence of a counter value and the preset value When the set value is 0 initial value The coi...

Страница 18: ...off 0 The latched output remains on until it is reset A state output will be on when the comparison operation is true and will be off when the comparison operation is false The counter operating stat...

Страница 19: ...an input filter is used for each channel can be set Input filter constants are common to all input channels For applica tions where the modules are used in a location with undesired electrical disturb...

Страница 20: ...nter value preset value 1 Xuuu17 2 Counter value preset value 2 Xuuu18 2 X01 reset Yuuu33 2 X02 reset Yuuu34 2 X03 reset Yuuu35 2 F0207 EPS Counter value 1 If the set value exceeds 32 767 in decimal n...

Страница 21: ...ard the base module until the yellow spring loaded anchor release button clicks into place F0301 EPS Anchor pin Base Module F3XS04 N module Figure 3 1 Attaching Modules CAUTION DO NOT bend the connect...

Страница 22: ...12 to 14 mm long M4 4 mm thick binder screw With a Phillips screwdriver tighten the upper side of the module with this screw During this operation the user must tilt the screwdriver somewhat using th...

Страница 23: ...sed in harsh environments where they are influenced by noise interfer ence apply a shielded twisted pair cable for the connection between the signal source and F3X04 uN module Connect the shielding wi...

Страница 24: ...d as indicated in Figure 3 5 Connect the diode so that its cathode will be connected to the positive line of the power supply F3XS04 uN OUT OUT L 12 24 V DC OUT OUT Diode L Transistor output Diode F03...

Страница 25: ...nter value of input channel 3 0 4 Counter value of input channel 4 0 Setting data 17 Preset value 1 of input channel 1 0 18 Preset value 2 of input channel 1 0 19 Input function of input channel 1 0 2...

Страница 26: ...83 HRD 5 HRD 83P HRD 6 16 bits T0402 EPS Symbols Slot number 3 digit integer with the following structure leading 0 s can be omitted k SL n1 D READ k SL n1 D HRD Physical slot 1 to 13 where the pulse...

Страница 27: ...responds to the channel number Program example for reading counter value When X00501 is on it reads four data channels from channel 1 to 4 of the pulse input module installed in slot number 106 into t...

Страница 28: ...WR 6 16 bits T0403 EPS Symbols First data position number for writing Data position number from which to start writing Table 4 1 Transfer data count Number of data to be written k S SL n2 WRITE Physic...

Страница 29: ...number 28 Data position number 29 Data position number 30 Data position number 31 Data position number 32 Data position number 33 Preset value 1 of input channel 1 Preset value 2 of input channel 1 In...

Страница 30: ...tion of modules Input function The input function is set using bit numbers 0 to 3 of the data position number corresponding to the input channel Bit number TC040103_01 EPS Input channel Data position...

Страница 31: ...utput input interconnections using bits 12 to 14 Bit number TC040103_02 EPS Output channel Data position number 1 20 2 24 3 28 4 32 15 0 0 0 0 14 0 0 0 1 13 0 0 1 0 12 0 1 0 0 11 0 0 0 0 10 0 0 0 0 9...

Страница 32: ...annels For each output channel this sets the corresponding input channel whose compari son result is to be output Bit number Connections to input channel TC040103_04 EPS Output channel 1 2 3 4 14 0 0...

Страница 33: ...tput channel Data position number 2 24 15 0 14 0 13 0 12 0 11 0 10 0 9 0 8 0 7 0 6 0 5 0 4 0 3 0 2 0 1 0 0 1 Example 3 Setting 1040 to data position number 28 for the output function in output channel...

Страница 34: ...s 27 s 59 s 120 s 250 s 510 s 1 ms 2 ms 4 ms 8 1 ms 16 3 ms 32 7 ms 65 5 ms 3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1...

Страница 35: ...1 Counter value of input channel 2 preset value 1 Counter value of input channel 2 not operating Counter value of input channel 3 preset value 1 Counter value of input channel 3 preset value 1 Counte...

Страница 36: ...or the external output terminal selected by this state Resets counter of input channel 2 Resets input relay Xuuu09 or the external output terminal selected by this state Resets input relay Xuuu10 or...

Страница 37: ...data STATUS SL n P Or STATUS SL P SL Slot number n Data position number P Variable name in which read data is stored Reads the preset values input function output function and filter constant at data...

Страница 38: ...hannel 2 0 24 Output function of output terminal 2 1000 25 Preset value 1 of input channel 3 0 26 Preset value 2 of input channel 3 0 27 Input function of input channel 3 0 28 Output function of outpu...

Страница 39: ...d The long integer type cannot be used Operation is not assured if the long integer variable is used for the input or input data storage variables 4 2 5 Reading the Setting Data STATUS The STATUS stat...

Страница 40: ...on number 1 3 2 7 3 11 4 15 15 0 0 0 0 14 0 0 0 0 13 0 0 0 0 12 0 0 0 0 11 0 0 0 0 10 0 0 0 0 9 0 0 0 0 8 0 0 0 0 7 0 0 0 0 6 0 0 0 0 5 0 0 0 0 4 0 0 0 0 3 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 Bit nu...

Страница 41: ...1 of input channel 2 latched output Data position number 12 is set to 2000 Counter value of input channel 3 preset value 1 of input channel 3 latched output Data position number 16 is set to 4000 Cou...

Страница 42: ...l 1 See Example 1 below Output channel 2 See Example 2 below Output channel 3 See Example 3 below Output channel 4 See Example 4 below Examples of the previous settings using a BASIC program Example 1...

Страница 43: ...ms 3 s 11 s 27 s 59 s 120 s 250 s 510 s 1 ms 2 ms 4 ms 8 1 ms 16 3 ms 32 7 ms 65 5 ms 3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 0...

Страница 44: ...1 Counter value of input channel 2 preset value 1 Counter value of input channel 2 not operating Counter value of input channel 3 preset value 1 Counter value of input channel 3 preset value 1 Counte...

Страница 45: ...value Register number specifying the input relay n 1 2 Slot number number or numeric variable Specify using an integer with the following structure leading 0 s can be omitted Physical slot location 1...

Страница 46: ...Xuuu05 Xuuu06 Xuuu07 Not Used Xuuu09 Xuuu10 Xuuu11 Not Used Xuuu13 Xuuu14 Xuuu15 Not Used 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 bit 101 Xuuu17 Xuuu18 Xuuu19 Not Used Xuuu21 Xuuu22 Xuuu23 Not Used Xuuu...

Страница 47: ...xternal output terminal selected by this state Resets counter of input channel 2 Resets input relay Xuuu09 or the external output terminal selected by this state Resets input relay Xuuu10 or the exter...

Страница 48: ...t data storage variables Output relay specifying register number n 1 2 Slot number numeric value or variable Specify using an integer with the following structure leading 0 s can be omitted Physical s...

Страница 49: ...Yuuu43 Yuuu44 Yuuu45 Yuuu46 Yuuu47 Yuuu48 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 bit 101 Yuuu49 Not Used Not Used Not Used Yuuu53 Not Used Not Used Not Used Yuuu57 Not Used Not Used Not Used Yuuu61 No...

Страница 50: ...208_03 EPS 4 2 9 Interrupt An interrupt can be generated when a change in the input relays Xuuu01 to Xuuu15 from off to on is detected Using an ON INT statement the program jumps to the required inter...

Страница 51: ...oc Ind 5 Sample Programs 5 1 IM 34M6H54 01E 1st Edition Feb 01 1999 00 5 Sample Programs Two sample programs are given here one using ladder application instructions and the other using BASIC statemen...

Страница 52: ...006 0007 0008 0009 0010 0011 Setting CH2 0012 0014 0015 0016 0017 0018 0019 0020 Preset value 1 Preset value 2 Input function Output function Initialize 32 bit region Preset value 1 Preset value 2 Inp...

Страница 53: ...D4002 MOV Setting filter constant WRITE D4001 0 D4001 MOV 25 4 4 WRITE D3001 M0035 14 D5001 MOV 33 1 4 WRITE D5001 D0001 4 1 READ 4 Start all CH count 0036 00047 0039 00052 0040 00054 0041 00056 0042...

Страница 54: ...ue 1 1130 CONTROL XS 21 10000 1140 CONTROL XS 22 20000 1150 CONTROL XS 23 E 1160 CONTROL XS 24 1000 1170 1180 Setting CH3 1190 Input Falling edge ring maximum value FFFF continue on return to 0 1200 O...

Страница 55: ...grams 5 5 IM 34M6H54 01E 1st Edition Feb 01 1999 00 1400 1410 LOOP 1420 Read counter value of all channels 1430 ENTER XS NOFORMAT CN 1440 1450 Display all count values 1460 PRINT CN 1470 1480 GOTO LOO...

Страница 56: ...Blank Page...

Страница 57: ...2 V DC 10 2 to 13 2 V DC 10 3 mA 8 0 V DC min 6 3 mA min 3 5 V DC max 2 4 mA max 2 Output Signal Specifications Output Type Rated Load Voltage max load voltage Max Load Current ON time Residual Voltag...

Страница 58: ...on again enables the counter After powering on a counter remains disabled until its corresponding output relay is turned on 2 To automatically stop a counter when the counter value is reset to 0 You...

Страница 59: ...put turns off when a user program turns on the related output relay A latched output remains on until it is reset To clear turn off a latched input relay turn on the corresponding output relay and con...

Страница 60: ...2 6 Counter Operation by Input Function 2 Pulse input FFFF 00 02 06 Preset value 2 0 Enable counter Y 49 1 Input function 2 Counter value resets to 0 X 03 1 1 The relay numbers shown above are for cha...

Страница 61: ...33 2 Reset X 02 Y 34 2 Reset X 03 Y 35 2 Input function 1 A decimal integer larger than 32 767 or hexadecimal 7FFF is normally regarded as a negative number However comparison operations on the F3XS04...

Страница 62: ...5 Y 39 Y 43 or Y 47 from off to on This resets the input relay that will be turned on when the ring up counter maximum value is exceeded On page 4 19 replace the text below the subhead 4 2 7 Reading I...

Страница 63: ...10 00011 Setting CH2 00012 00014 00015 00016 00017 00018 00019 00020 Preset value 1 Preset value 2 Input function Output function Initialize 32 bits Preset value 1 Preset value 2 Input function Output...

Страница 64: ...4 4 11 D04002 MOV Setting filter constant WRITE D04001 0 D04001 MOV M00035 14 D05001 MOV 33 1 4 WRITE D05001 D00001 4 1 READ 4 Start counting for all CHs 00036 00047N 00039 00052N 00040 00054N 00041...

Страница 65: ...NTROL XS 6 20000 1180 CONTROL XS 7 E 1190 CONTROL XS 8 1000 1200 1210 Setting CH3 1220 Input falling edge ring max value FFFF continue when value resets to 0 filter 1230 Output turns on when counter i...

Страница 66: ...Blank Page...

Отзывы: