ed-2002-021 multi function input module (4633)

43
Messung Systems NEXGEN PLC I/O Modules Multi Function Input Module (4633) Published Nov 2003 Document No.: ED-2002-021/V1.0 Page 1 of 43 NEXGEN Series of PLCs Multi-Function Input Module (Ordering Code – 4633) Document No.:ED-2002-021 Version: 2.0 Published Nov 2003 MESSUNG SYSTEMS EL-2, J- Block MIDC Bhosari, Pune – 411026.(INDIA) Tel: (+91)-020-712 0807, 712 2807. Email : [email protected]  WEB: www.messung.com 

Upload: raj-chavan

Post on 03-Jun-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 1/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 1 of 43

NEXGEN Series of PLCs

Multi-Function Input Module

(Ordering Code – 4633)

Document No.:ED-2002-021

Version: 2.0

Published Nov 2003

MESSUNG SYSTEMSEL-2, J- Block MIDC Bhosari,

Pune – 411026.(INDIA)

Tel: (+91)-020-712 0807, 712 2807.Email : [email protected] 

WEB: www.messung.com 

Page 2: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 2/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 2 of 43

Revision

Version Date Description

1.0 Nov 2003Multi Function Input Module (Ordering Code – 4633)NEXGEN Series of PLCs.

Page 3: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 3/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 3 of 43

INDEX

1  Module Overview............................................................................................................................5 1.1  Module Overview ...................................................................................................................... 5 1.2  LED Indications......................................................................................................................... 7 1.3  General Specifications.............................................................................................................. 8 

2  Module Operation ........................................................................................................................... 9 2.1  Block Diagram...........................................................................................................................9 

2.1.1  Normal Input................................................................................................................... 11 2.1.2  Interrupt Input.................................................................................................................11 2.1.3  Pulse Catch Input...........................................................................................................12 2.1.4  Counter Input..................................................................................................................13 

3  Installation and Wiring ..................................................................................................................17 3.1  Module Installation..................................................................................................................17 3.2  Connection Details.................................................................................................................. 17 

3.2.1  Precautions to be taken .................................................................................................19 4 

Configuration and Programming................................................................................................... 20 

4.1  Configuration...........................................................................................................................20 4.2  Data ........................................................................................................................................22 4.3  Programming .......................................................................................................................... 23 

INDEX OF FIGURES

Figure 1: Front view of Multi Function Input Module.............................................................................. 6 Figure 2 : Block Diagram .....................................................................................................................10 Figure 3 : Interrupt Input ......................................................................................................................11 Figure 4 :Pulse Catch Input ................................................................................................................. 12 Figure 5 : Up Counter .......................................................................................................................... 13

 Figure 6 : Counter Updating during MFIP FB execution...................................................................... 14 Figure 7 : Up Down Counter ................................................................................................................ 15 Figure 8 :Counting Range.................................................................................................................... 15 Figure 9 : Up / Down Counter .............................................................................................................. 16 Figure 10 : Connection Diagram of Multi Function Input Module........................................................ 18 Figure 11 :Program PLC_PRG............................................................................................................ 39 Figure 12: Program Up Counter........................................................................................................... 40 Figure 13 :Program Up Down Counter ................................................................................................41 

Page 4: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 4/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 4 of 43

Guidelines for the Safety of the user and protection of I/O Module

a) DESIGN ENGINEER  Any engineer who is responsible for the planning, design, andconstruction of automatic equipment using the product associated with this manualshould be of a competent nature, trained and qualified to the local and national standardsrequired to fulfill the role.. These engineers should be fully aware of all the aspects ofsafety with regards to automated equipment.

b) COMMISSIONING/SERVICE ENGINEER. Any engineer who is responsible for the

commissioning, use and maintenance of automatic equipment using the productassociated with this manual should be of a competent nature, trained and qualified to thelocal and national standards required to fulfill the role. This includes being completelyfamiliar with all the associated documentation for the said system. Maintenance to becarried out in accordance to the established safety practices.

c) OPERATORS. The personnel using the completed equipment should be trained to usethe product in a safe and coordinated manner in compliance to established safetypractices. They should be also familiar with documentation, which is relevant to theactual operation of the equipment. 

Note: The term-completed equipment refers to a third party constructed device, whichcontains or uses the product associated with this manual.

Notes on Symbols used in this Manual

The following symbols will be used throughout this manual to highlight points of information regardingthe users personal SAFETY and protection of the unit's integrity. The meaning of the symbols must beclearly understood and due cognizance be taken of the associated note where these symbols appear.The symbols and their descriptions are given ahead for ready reference

HARDWARE RELATED

1 Indicates that the identified danger WILL cause physical and property damage.

2Indicates that the identified danger could POSSIBLY cause physical and propertydamage.

3 Indicates a point of further interest or explanation.

Page 5: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 5/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 5 of 43

1 Module Overview

This chapter describes the following

• Module Overview

• LED Indications

• General Specifications

1.1 Module Overview

The multi function input module provides -

• Twelve inputs with adjustable filter time. The filter time is selectable in steps of 10

ms (default), 1 ms and 100 µs. The selected filter time is applicable for a group offour inputs and there are four such groups. Alternately, the inputs can beconfigured as two interrupt inputs, two pulse catch inputs and four reset inputs tocounters. The last four inputs can be programmed as reset inputs for four 8 bit upcounters.

• Programmable counters with external reset. The counters can be configured as -o Four Up counters oro Two Up / down counters oro Two Up counters and one Up / Down counter.

• Maximum counter input frequency is up to 10 KHz.

• Inputs hardware interface for open collector (PNP or NPN, 24 or 12 VDC) inputsdepending on type of connections to the module.

Multi function input module has two versions which is specified on the right side onthe serial no. label. The compatibility with various types of Nexgen processormodules is explained in the table below.

Moduleversion

NEXGEN4000V1X(OS 1.56)

NEXGEN4000V2X(OS 2.00 onwards)

NEXGEN521X NEXGEN522X

1.00 Yes (Configurationby ‘Advanced Info’screen in DMP)

No Yes(Configuration andreading by FBMFIP or functionsIM_Write andIM_Read)

Yes(Configuration andreading by FBMFIP or functionsIM_Write andIM_Read)

2.01 Yes (Configurationby ‘Advanced Info’screen in DMP)

Yes (Configurationby functionWRITE_W andreading byfunction READ_W

Yes(Configuration andreading by FBMFIP or functionsIM_Write and

IM_Read)

Yes(Configuration andreading by FBMFIP or functionsIM_Write and

IM_Read)

The figure 1 shows front view of the multi function input module.

Page 6: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 6/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 6 of 43

Figure 1: Front view of Multi Function Input Module

The module provides LED indications on the front side. Brief information about inputscan be written on the front door. Behind the front door, 38-pin removable terminalblock is provided for interfacing. The wiring details are shown on backside of door.

The multi-function input module can be configured in any slot of the PLC. The numberof the multi-function input modules is limited by back panel current capacity. The inputsignals are optically isolated and filtered. The multi-function input module providesvarious configuration options. These options along-with corresponding inputs aregiven in a tabular form below.

TerminalBlock FixingScrew

38 PinRemovableTerminalBlock

Front ShieldPlate

TerminalBlock FixingScrew

IOLabel

InputStatusLEDs

ModuleStatusLED

InputStatusLEDs

WiringLabel

Page 7: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 7/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 7 of 43

1.

Input No. Primary function Special function

0 Programmable Filter Time Interrupt Input

1 Programmable Filter Time Interrupt Input

2 Programmable Filter Time Pulse Catch Input

3 Programmable Filter Time Pulse Catch Input

4 Programmable Filter Time No alternate function

5 Programmable Filter Time No alternate function

6 Programmable Filter Time No alternate function

7 Programmable Filter Time No alternate function

8 Programmable Filter Time Reset to Counter 0

9 Programmable Filter Time Reset to Counter 1

10 Programmable Filter Time Reset to Counter 2

11 Programmable Filter Time Reset to Counter 3

12 Counter 0 No alternate function

13 Counter 1 / Direction Input No alternate function

14 Counter 2 No alternate function

15 Counter 3/ Direction Input No alternate function

1.2 LED Indications

The following table explains significance of LEDs provided on the module.

LED Color Status Description

OFF Module Healthy and configured.

Module Hardware FaultError (1) YellowON

Module not configured

OFF Input OFFInputs (16)One for each input

GreenON Input ON

Page 8: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 8/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 8 of 43

1.3 General Specifications

The general specifications of the multi function input module are as below

Voltage LevelInput type Channels Filter Time High

(min)Low(max)

Remark

ProgrammableFilter Time

12 (max)100 µsec,1ms,10 ms (Default)

   D   i  g   i   t  a   l

Pulse catch 2 500 µsec

18 V 5 V

24 V field interface.Input types can beselected in groups of4.

Up Counter withprogrammablereset

4

10 µs (default),

100 µs,1ms,10 ms

24 / 12 V fieldinterface. These areaccumulating typecounters.

   C  o  u  n   t  e  r

Up-Down counterwith directioninput andprogrammablereset

2

10 µs (default),

100 µs,1ms,10 ms

18/9 V 5/4 V24 / 12 V fieldinterface. The counterhas external directioninput.

General

Maximum frequency 10 KHz

3 mm Green LED for each input provided on digital sideIndications

3 mm orange LED for error

Type of inputs Sink / Source selectable as per group connection

Isolation Optical (1.5 KV from internal bus)

Back plane current 205 mA

IO points consumed 16

Terminal connection Removable 38-pin terminal block

Ordering code 4633

Page 9: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 9/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 9 of 43

2 Module Operation

This chapter describes the basic operation of the module. This chapter explainsoperational details of

• Normal Input

• Pulse Catch Input• Up Counter Mode

• Up Down Counter Mode

2.1 Block Diagram

The module operation is controlled by the configuration written by the applicationprogram. During PLC scan, the module can be configured by executing IM_Write /WRITE_W instruction. Refer chapter 4 for configuration and programming details.Depending upon the configuration, mode selection circuit configures the functionalityof the inputs and counters. All the input signals are optically isolated. The details ofoperation are discussed in subsequent sections.

In Nexgen 4000 Processor (version 1.56), the Processor writes configuration to themulti function input module (ver. 1.00) during warm start initialization and cold startinitialization. The user can configure the module from the advanced configurationscreen provided in programming software DOXMINI+. In DOXMINI+, PLC typeselected is ‘NEXGEN4000V1X’. Also, user can define PLC variables to hold thecounter values. This configuration information is downloaded to the Processormodule along with the application program. The Processor reads the counter valuesfrom the module in every input scan and updates the user defined PLC variables asper the configuration. There is no need to write any application program to configureand read the multi function input module.

In Nexgen 4000 Processor (version 2.00 onwards), the user can configure the multifunction input module (ver. 2.01) by executing WRITE_W instruction. The counter

values can be read and manipulated in the application program by executingREAD_W instruction. These instructions are supported in the programming softwareDOXMINI+ (version 2.00 onwards) for the PLC type ‘NEXGEN4000V2X’. The multifunction input module (ver. 1.00) can not be used with Nexgen 4000 Processor(version 2.00 onwards)

In Nexgen 5000 Processor, the user can configure the multi function input module(ver. 1.00) by executing FB MFIP from MFIP library and can be programmed byprogramming software CoDeSys (version 2.2 onwards).

In Nexgen 5000 Processor, the user can configure the multi function input module(ver. 2.01) by executing IM_Write function or FB MFIP. The counter values can beread and manipulated in the application program by executing function IM_read.

Page 10: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 10/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 10 of 43

Figure 2 : Block Diagram

InterfaceCircuit

CPU Normal Input 8

Reset  Pulse In

DirectionPulse Out

Counter 1 Input 8

Input 12

ModeSelection

  Circuit

OpticalIsolation

  Normal Input 9

Reset  Pulse In  Direction

Pulse Out

Counter 2 Input 9Input 13

Normal Input 0

Interrupt 0Input 0

ModeSelectionCircuit

OpticalIsolation

Normal Input 1

Interrupt 1Input 1

ModeSelectionCircuit

OpticalIsolation

Normal Input 2

Pulse Catch 2Input 2

ModeSelectionCircuit

OpticalIsolation

Normal Input 3

Pulse Catch 3Input 3

ModeSelectionCircuit

OpticalIsolation

Normal Input 4 Input 4OpticalIsolation

Normal Input 7 Input 7OpticalIsolation

Normal Input 8

Reset  Pulse In

DirectionPulse Out

Counter 1 Input 10

Input 14

ModeSelection

  Circuit

OpticalIsolation

  Normal Input 9

Reset  Pulse In  Direction

Pulse Out

Counter 2 Input 11Input 15

Page 11: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 11/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 11 of 43

2.1.1 Normal Input

Normally input filter time of input is 10 msec. The filter time adds delay in takingrelevant control action after sensing the input. In order to interface fast input, this

module can be used. The available filter times are 100 µs, 1 ms and 10 ms.

The module provides 12 programmable filter time inputs and 4 counters. These aredivided in four groups – each group having four inputs. The filter time of inputs can be

set group wise. If the input is programmed to have special function i.e. interrupt, pulsecatch or reset to counter, then the filter time for special function overrides group filtertime setting.

2.1.2 Interrupt Input

In general, the Processor module of the PLC reads all the inputs in input scan.Subsequently these inputs are processed in the logic scan and related action istaken. However, some inputs demand instant action from the control system. Suchinputs can be connected to the interrupt inputs of this module. Upon activation ofthese inputs, relevant Interrupt task is instantly executed depending upon interruptspriority. The execution of the interrupt task is asynchronous to the PLC scan cycle.

The module provides two user configurable Interrupt Inputs, Input 0 and Input 1. The

input should be ON for at least 500 µs for proper recognition and action by theoperating system. The following figure describes operational details of Interrupt input.

Figure 3 : Interrupt Input

The PLC operating system keeps on performing PLC scan cyclically. As the interruptinput activates, the operating system puts related interrupt task for execution. Afterinterrupt task execution, the PLC resumes from where it left. The interrupt input islatched and need to be cleared in the application program. After clearing the interruptinput, control logic is again set to generate interrupt event.

Nexgen 522x series of the Processor modules support interrupt event execution. Formore details, refer ED-2000-068 Events Library User Manual.

500 µs

InterruptTask

PLC scan PLC scan PLC scan

FieldInput

Page 12: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 12/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 12 of 43

2.1.3 Pulse Catch Input

Normally the input remains on for sufficient time. This time is very large as comparedto sum of input filter and PLC scan time. In such case the input can be detected withstandard digital input module.

Sometimes input remains on for very short time. This time is very less as compared to

standard filter time and PLC scan time. Such inputs can be connected to pulse catchinput of the module. The module can detect a pulse as short as 500 µs.

The module provides two inputs 2 and 3 as configurable pulse catch inputsindividually. The status of these inputs is available in input image. The following figuredescribes operation of pulse catch input.

PLC Scan PLC Scan PLC Scan PLC Scan PLC Scan PLC Scan

Figure 4 :Pulse Catch Input

The pulse catch input latches the pulse till it is read in subsequent input scan inNexgen 4000 CPUs. After reading the pulse catch, control logic is again set to catchnext pulse. As can be noticed, if additional pulses occur after latching of the first pulseand reading of the same, then these pulses are not recognized. Thus the timebetween two consecutive pulses should be more than the PLC scan time.

In Nexgen 5000 CPU, the latched input needs to be cleared in the applicationprogram so that next pulse catch input is detected.

This pulse isignored

500 µs

Input ImageStatus

FieldInput

Page 13: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 13/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 13 of 43

2.1.4 Counter Input

The module provides two modes of counting operation

• Up counter mode

• Up down counter mode

2.1.4.1 Up Counter Mode

The module provides four 8-bit counters with programmable reset input. The range ofcounter is 0 to 255. The maximum frequency that can be counted is 10 KHz.

The counters can be configured for required mode of operation. The configuration ofthe module is done through MFIP Function Block. The hardware counter value is readthrough MFIP Function Block. The reset input clears hardware counter. The pulsewidth of reset input should be more than the filter time of associated input group. Thereset input, if not used as reset input, can be used as normal input with adjustablefilter time. The MFIP Function Block encapsulates total handling of the MultiFunctionModule as shown below –

Figure 5 : Up Counter

. Hardware counter counts up to 255. When counter reaches the maximum value i.e.255, it rolls over to 0. As overflow indication is not available, care should be taken touse counter in operational range to avoid unpredictable results.

FB MFIP reads hardware counter value which is available in 8 bit register array.When ever counter value is read, it is stored in user defined register array andhardware counter is cleared. In this way every time when ever hardware counter isread using FB MFIP, difference count (i.e. count from last FB call to current call) isavailable. So this count has to be accumulated in user defined register by externallyadding current count to previously accumulated count.

When reset input is TRUE, hardware counter is cleared and reset status is latched.When ever reset status is read in the input scan, the latch is cleared in Nexgen 4000(PLC type NEXGEN4000V1X). In Nexgen 4000 (PLC type NEXGEN4000V2X) CPUand Nexgen 5000 CPU, the latched reset input need to be cleared in the applicationprogram. This provision is useful as external reset input when TRUE, clears thecounter asynchronous to PLC scan and counter can count further pulses if reset inputis FALSE again. In such a case, the status of external reset input is available tillsubsequent FB MFIP execution. If reset input status is detected as TRUE, usershould transfer hardware counter value to user defined register instead of adding toprevious count. The following figure explains the operation of counter.

8-BitHardwareCounter

Reset

Counter Data

Pulses

READOperation

Status of Reset

WRITEOperation

ModuleConfiguration 

ModeSelection

Circuit 

Page 14: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 14/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 14 of 43

7 7 4 2 2 3

0 7 14 2 5

Figure 6 : Counter Updating during MFIP FB execution

2.1.4.2 Up Down Counter Mode

The module realizes up down counter by cascading two 8–bit counters. Counter 0 &1 form one Up / Down counter and counter 2 & 3 form second. The range of counteris 0 to 65535. The hardware counter value and reset input status can be read by

executing READ_W instruction. The reset input clears hardware counter. The resetinput, if not configured as reset input, can be used as normal input or pulse catchinput. Also the reset inputs of unused 8-bit counters i.e. counter 2 and counter 4 canbe used as normal inputs with adjustable filter time. The figure 7 shows the blockdiagram and counting range.

PulsesCounted

 AccumulatedCount

Counter updatingduring FB MFIPexecution

ResetInput

PulseInput

Pulses Accumulated

Pulses Accumulated

Pulses Accumulated

Pulses Accumu

Page 15: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 15/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 15 of 43

Figure 7 : Up Down Counter

Figure 8 :Counting Range

The operation of up / down counter is as below.

Direction Pulses Reset Action

1 0 Count up

0 0 Count down

x X 1 Reset counter

 At rising edge of incoming pulses, depending on status of direction input 0 or 1,counter counts up or down.

655350

Up

Down

Cascaded 16-bit hardwarecounters

Reset

16 bit Counter Data

Pulses

READOperation

Status of Reset Input

WRITEOperation

ModuleConfiguration 

ModeSelectionCircuit

FB MFIP

Direction

Page 16: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 16/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 16 of 43

The following figure explains the operation of counter –

5 3 -4 4 2 2 6

0 5 4 2 8

Figure 9 : Up / Down Counter

Pulses Copied

to register

DirectionInput

ResetInput

Counter Updatingduring PLC Scan

PulsesCounted

PulsesCopied

PulseInput

PulsesCopied

PulsesCopied

PulsesCopied

Page 17: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 17/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 17 of 43

3 Installation and Wiring

This chapter provides the following information –

• Module Installation

• Connection Details

3.1 Module Installation

The installation procedure for multi function input module is same as any otherdiscrete I/O module.

• Put the module in to the desired slot of the PLC.

• Tighten the screw provided at the top of the module.

• Connect the terminal block at the front of the module and tighten it.

3.2 Connection Details

The figure shows the connection diagram of multi function input module.

Page 18: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 18/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 18 of 43

Figure 10 : Connection Diagram of Multi Function Input Module

To the module, NPN and PNP type of input interface is provided. For counter inputs,12V or 24 VDC input can be connected. The input devices can be connected forsource or sink type of operation in groups. For counter, individual input can beconnected for sink or source operation (12 or 24 VDC).

In the figure, first 4 inputs are connected for source type of operation with groundconnected to terminal no. 5. Next 4 inputs are connected for sink type of operationwith 24 VDC connected to terminal no. 10.

The figure shows the counter input connections. PNP type of device is connected tocounter0 and NPN type of device is connected to counter1.

GND +24 VDC

PNP type ofInput device

NPN type ofInput device

Page 19: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 19/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 19 of 43

3.2.1 Precautions to be taken

 All the normal precautions concerning the wiring and protection of an electronicequipment in an industrial environment should be observed. To guard againstcoupling noise from one conductor to another, follow the guidelines given below.

Inside control panel

Following guidelines to be observed inside control panel.

•  All power circuit wiring e.g. connected to Power Supply Module, powercontactors, etc i.e. high voltage wiring should be kept separate and apart fromhigh frequency counter input signals.

• Digital Input wiring and Digital Output wiring (especially, relay output and ACoutput) should be separately bundled and kept as apart as possible from highfrequency counter input signals.

• High frequency counter input signals should be carried through shielded cables.

Outside control panel

Following guidelines to be observed outside control panel.

Depending upon the type of modules used in PLC, separate ducts should be providedfor

• Power circuit wiring and power cables.

• Input cables

• Output cables

•  All cables carrying high frequency signals.

Wherever possible, it is recommended to

•  Avoid parallel routing of cables carrying analog signals and power cables, etcover long distances.

• Ensure that cables carrying analog signals cross at right angles to power cablesso that minimum length of cable will be in close vicinity of power cables.

• Run cables on metallic surfaces.

•  Avoid number of joints.

• Keep cable lengths as short as possible.

Page 20: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 20/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 20 of 43

4 Configuration and Programming

This chapter describes the configuration settings as required from programming pointof view. The topics covered are as mentioned below -

• Configuration of the module

• Data

• Programming

4.1 Configuration

To configure the module, it is necessary to write appropriate configuration data tospecific memory of the module. The inputs are grouped in 4 groups. Input 0 to 3 formGroup0. Input 4 to 7 form Group1 and so on. The subsequent sections explain thedetails.

Module Byte MB 20H

The module byte 20H holds configuration of inputs from group 0. Input 0 and 1 can be

configured as normal or interrupt input individually. Input 2 and 3 can be configuredas normal or pulse catch input individually. The module byte 20H holds configurationinformation as shown in the table below.

Item Description 7 6 5 4 3 2 1 0Input 0 as normal input 0Input 0 as interrupt input 1

Input 1 as normal input 0Input 1 as interrupt input 1Input 2 as normal input 0Input 2 as pulse catch input 1Input 3 as normal input 0

Group 0Input

Modes

Input 3 as pulse catch input 1Res -- 0 0 0 0

Page 21: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 21/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 21 of 43

Module Byte MB 21H

The module byte 21H holds configuration of inputs from group 2 and group 3. Inputs8, 9, 10 and 11 can be configured as normal or reset to counter input individually.Inputs 12, 13, 14 and 15 are counter inputs and can be configured as up counter orup down counter. The module byte 21H holds counter configuration information asshown in the table below.

Item Description 7 6 5 4 3 2 1 0

Channel 8 as normal input 0Channel 8 as reset to counter input 1Channel 9 as normal input 0Channel 9 as reset to counter input 1Channel 10 as normal input 0Channel 10 as reset to counter input 1Channel 11 as normal input 0

Group 2Input

Modes

Channel 11 as reset to counter input 1Channel 12, 13 as Up counters 0 0

Channel 12, 13 Up Down counter 0 1Channel 14, 15 as Up counters 0 0

Group 3Input

ModesChannel 14, 15 as Up Down counter 0 1

Module Byte MB 22H

For the normal inputs, delay is programmable as 0.1 ms or 1 ms or 10 ms group wise.Group 1 can be configured only as normal inputs. The module byte 22H holds groupwise programmable delay configuration information as shown in the table below.

Item Description 7 6 5 4 3 2 1 010 ms delay 0 01 ms delay 0 10.1 ms delay 1 0

Group 0

Invalid 1 110 ms delay 0 01 ms delay 0 10.1 ms delay 1 0

Group 1

Invalid 1 10.01 ms delay 0 00.1 ms delay 0 11 ms delay 1 0

Group 2

10 ms delay 1 10.01 ms delay 0 00.1 ms delay 0 11 ms delay 1 0

GroupDelays

Group 3

10 ms delay 1 1

Page 22: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 22/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 22 of 43

Module Byte MB 24H

The special inputs like interrupt input, pulse catch input and reset to counter input islatched when it is 1 and is available in the input image. The latch should be cleared inthe application program when special inputs are read from the input image. Thisfacilitates to sense the fast inputs in the application program. After clearing the latch,module is ready for next input detection.

 After sensing the special input as 1, application program should write 1 at respectivebit position of the module byte 24H. This clears the respective latch. The table belowshows which bit clears particular latched input.

Item Description 7 6 5 4 3 2 1 0

Clear interrupt input 0 latch 1Clear interrupt input 1 latch 1Clear pulse catch input 2 latch 1Clear pulse catch input 3 latch 1Clear reset input 8 latch 1Clear reset input 9 latch 1Clear reset input 10 latch 1

Latch Clear

Clear reset input 11 latch 1

4.2 Data

 All the inputs are also mapped in the input image which is updated in every inputscan or on demand in the application program. For the counters, count data is storedin module byte 0 to 3.

MB 0H Counter 0 data

MB 1H Counter 1 data

MB 2H Counter 2 data

MB 3H Counter 3 data

This data need to be manipulated as explained the subsequent topics ofprogramming.

Page 23: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 23/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 23 of 43

4.3 Programming

 As explained earlier, module has two versions as 1.00 and 2.01. The module can beused with NEXGEN4000 as well as Nexgen5000 CPUs. The subsequent topicsexplain how to handle the module version operation for different types of CPUs.

NEXGEN4000V1X with module version 1.00

NEXGEN4000V1X CPU has operating system version 1.56. The module version 1.00or 2.01 can be configured in any slot using advanced information configuration screenin the programming software ‘DOXMINI+’. In Advanced Information, the operatingmodes of counters and special functionality like pulse catch input or reset to countercan be set.

The figure below shows a typical screen of DOXMINI+ software for configuring themulti function Input module.

Check the inputs that are to be used as pulse catch. The associated inputs are shownin circular bracket. The interrupt handling is not supported for this CPU.

Group Filter TimeThe adjustable input filter time can be set in-groups of four. The associated inputs areshown in circular bracket. Select the required filter time from available options.

Options available for first twelve inputs are 100 µs, 1 ms, 10 ms. Options available for

counter inputs are 10 µs, 100 µs, 1 ms, 10 ms

Page 24: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 24/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 24 of 43

CounterThe operating modes of timers can be set here. Following configurations are providedfor counters.

• Four Up counters or

• Two Up / down counters or

• Two Up counters and one Up / Down counter.

Information at AddressEnter the address where counter information is to be stored. Depending on countersetting, the operating system consumes subsequent words. The operating systemconsumes 2 bytes per Up counter or Up / Down counter. For the same consecutivewords are used as given below.

Suppose MW100 is programmed as user defined register then

Case 1: 4 x Up counterMW100 is assigned to Counter 0MW102 is assigned to Counter 1MW104 is assigned to Counter 2MW106 is assigned to Counter 3

Case 2: 2 x Up / Down counter

MW100 is assigned to Counter 0MW102 is assigned to Counter 2

Case 3: 2 x Up counter and 1 x Up/ Down counterMW100 is assigned to Up Counter 0MW102 is assigned to Up Counter 1MW104 is assigned to Up/ Down Counter

Periodic / Cyclic UpdationCounter updation once in a PLC scan or periodically (after 10 msec) can be selecteddepending upon scan time of PLC and frequency of incoming pulses. In cyclicupdation, the counter is read and user defined register is updated at the end of PLCscan. In periodic updation, the counter is read and updated every 10 msec. Thisupdation is asynchronous to PLC scan. 

If periodic updation is selected, it will be applicable for all the four counters.

The module configuration along-with the application program is downloaded to theCPU of the PLC. CPU writes configuration to the multi-function input module on everypower on and after program modification (downloading, program transfer throughkeyboard etc).

Page 25: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 25/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 25 of 43

Input and Memory data mapping

The module consumes 2 bytes of input image. The status of input variables when theinputs are configured as normal inputs is same as discrete input module. The counterinputs are also mapped in the input image. The operating system updates the valuesof counters periodically asynchronous to the PLC scan. Depending on countermodes, the operating system consumes successive words. For each Up or Up/ Downcounter, the operating system consumes one subsequent word. The various casesare explained below. It is assumed that MW10 is entered in this field.

Case 1: 4 x Up counter - 4 Subsequent words are consumed.Case 2: 2 x Up / Down counter - 2 Subsequent words are consumedCase 3: 2 x Up counter and 1 x Up/ Down counter - 3 Subsequent words areconsumed

NEXGEN4000V2X with module version 2.01

NEXGEN4000V2X CPU has operating system version 2.00 onwards. The moduleversion 1.00 is not configurable and hence not used with this CPU. The moduleversion 2.01 can be configured in any slot using WRITE_W function. The Advancedinformation configuration screen in the programming software ‘DOXMINI+’ should be

programmed with dummy entries. The module data can be read using ‘READ_W’function. The following example shows the configuration and handling of 4 upcounters

The table below gives the declaration of global variable used in the program.

Project : MFIPTST1 Global Variable

Global Variables------------------

Symbol Address Data_type Init_val Comment------------------------------------------------------------------------------INIT MX0.0 BIT

CFG_WREN MX0.1 BITCFG_WRDN MX0.2 BITDATA_RD MX0.3 BITCLEAR0 MX1.0 BITCLEAR1 MX1.1 BITCLEAR2 MX1.2 BITCLEAR3 MX1.3 BITDATA0 MB10 BYTEDATA1 MB11 BYTEDATA2 MB12 BYTEDATA3 MB13 BYTEWENABLE MW2 WORD $0WDISABLE MW4 WORD $2CONFIG MW6 WORD $CC00DATA MW10 INT

CNTR0 MD120 DOUBLE_WORDCNTR1 MD124 DOUBLE_WORDCNTR2 MD128 DOUBLE_WORDCNTR3 MD132 DOUBLE_WORD

The ladder rungs in the subsequent pages explains the program along with selfexplanatory rung description.

Page 26: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 26/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 26 of 43

Rung no 1Rung description : This rung informs module that it is configuring the module

INIT ------ WRITE_W ---- CFG_WREN+---|/|---| EN ENO|-+---------+---------+---------+---------+---( )---

| || |

#0 | SLOT || || |

WENABLE| DATA || || |

#1 | LEN || || |

$42 | ADDR || |-------------------

Rung no 2Rung description : This rung writes two byte configuration information of group 2and 3. Here, configuration data $CC00 is written so that counters are configured as4 up counters without reset input.

INIT CFG_WREN ------ WRITE_W ---- CFG_WRDN+---|/|---+---| |---| EN ENO|-+---------+---------+---------+---( )---

| || |

#0 | SLOT || || |

CONFIG | DATA || || |

#1 | LEN || || |

$20 | ADDR || |

-------------------

Rung no 3Rung description : Once the configuration is written successfully, the module isinformed so. BOOLean variable INIT is 1 when configuration activity is completed inall respects.

INIT CFG_WRDN ------ WRITE_W ---- INIT+---|/|---+---| |---| EN ENO|-+---------+---------+---------+---(S)---

| || |

#0 | SLOT || || |

WDISABLE| DATA |

| || |

#1 | LEN || || |

$42 | ADDR || |-------------------

Page 27: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 27/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 27 of 43

Rung no 4Rung description : Once INIT is 1, counter data (4 bytes) is read and stored atDATA mapped at MW10.

INIT ------ READ_W ----- DATA_RD+---| |---| EN ENO|-+---------+---------+---------+---------+---( )---

| || |

#0 | SLOT || |

| |#0 | ADDR |

| || |

#2 | LEN || || |

DATA | DATA || |-------------------

Rung no 5Rung description : After reading data, counter 0 data is accumulated and stored inCNTR0 mapped at MD120. Rungs 5 to 8 are programmed to accumulated the count.

DATA_RD ------- ADD_B -----+---| |---| EN ENO|-

| || |

DATA0 | DAT1 DOUT|- MB120| || |

MB120 | DAT2 || |-------------------

Rung no 6Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB121 | DAT1 DOUT|- MB121| || |

#0 | DAT2 || |-------------------

Rung no 7Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB122 | DAT1 DOUT|- MB122| || |

#0 | DAT2 || |-------------------

Page 28: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 28/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 28 of 43

Rung no 8Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB123 | DAT1 DOUT|- MB123| || |

#0 | DAT2 || |-------------------

Rung no 9Rung description : After reading data, counter 1 data is accumulated and stored inCNTR1 mapped at MD124. Rungs 9 to 12 are programmed to accumulated the count.

DATA_RD ------- ADD_B -----+---| |---| EN ENO|-

| || |

DATA1 | DAT1 DOUT|- MB124| || |

MB124 | DAT2 || |-------------------

Rung no 10Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB125 | DAT1 DOUT|- MB125| || |

#0 | DAT2 || |

-------------------Rung no 11Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB126 | DAT1 DOUT|- MB126| || |

#0 | DAT2 || |-------------------

Page 29: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 29/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 29 of 43

Rung no 12Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB127 | DAT1 DOUT|- MB127| || |

#0 | DAT2 || |-------------------

Rung no 13Rung description : After reading data, counter 2 data is accumulated and stored inCNTR2 mapped at MD128. Rungs 13 to 16 are programmed to accumulated the count.

DATA_RD ------- ADD_B -----+---| |---| EN ENO|-

| || |

DATA2 | DAT1 DOUT|- MB128| || |

MB128 | DAT2 |

| |-------------------

Rung no 14Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB129 | DAT1 DOUT|- MB129| || |

#0 | DAT2 || |-------------------

Rung no 15Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB130 | DAT1 DOUT|- MB130| || |

#0 | DAT2 || |-------------------

Page 30: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 30/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 30 of 43

MFIP_CFG : Rung no 16Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB131 | DAT1 DOUT|- MB131| || |

#0 | DAT2 || |-------------------

Rung no 17Rung description : After reading data, counter 3 data is accumulated and stored inCNTR3 mapped at MD132. Rungs 17 to 20 are programmed to accumulated the count.

DATA_RD ------- ADD_B -----+---| |---| EN ENO|-

| || |

DATA3 | DAT1 DOUT|- MB132| || |

MB132 | DAT2 |

| |-------------------

Rung no 18Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB133 | DAT1 DOUT|- MB133| || |

#0 | DAT2 || |-------------------

Rung no 19Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB134 | DAT1 DOUT|- MB134| || |

#0 | DAT2 || |-------------------

Page 31: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 31/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 31 of 43

Rung no 20Rung description :

DATA_RD ------ ADDC_B -----+---| |---| EN ENO|-

| || |

MB135 | DAT1 DOUT|- MB135| || |

#0 | DAT2 || |-------------------

Rung no 21Rung description : Counter can be reset in the application program by moving 0 tothe accumulator. The rungs 21 to 24 are programmed to move 0 to accumulator whenthe respective condition is satisfied in the application program.

CLEAR0 ------ MOVE_D -----+---| |---| EN ENO|-

| || |

#0 | DAT1 DOUT|- CNTR0| |-------------------

Rung no 22Rung description :

CLEAR1 ------ MOVE_D -----+---| |---| EN ENO|-

| || |

#0 | DAT1 DOUT|- CNTR1| |-------------------

Rung no 23Rung description :

CLEAR2 ------ MOVE_D -----

+---| |---| EN ENO|-| || |

#0 | DAT1 DOUT|- CNTR2| |-------------------

Rung no 24Rung description :

CLEAR3 ------ MOVE_D -----+---| |---| EN ENO|-

| || |

#0 | DAT1 DOUT|- CNTR3| |

-------------------

Page 32: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 32/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 32 of 43

The following example shows the configuration and handling of 2 up down counterswith reset. The table below gives the declaration of global variable used in theprogram.

Global Variables------------------

Symbol Address Data_type Init_val Comment------------------------------------------------------------------------------

INIT MX0.0 BITCFG_WREN MX0.1 BITCFG_WRDN MX0.2 BITDATA_RD MX0.3 BITCLEAR0 MX0.4 BITCLEAR1 MX0.5 BITCLEAR2 MX0.6 BITCLEAR3 MX0.7 BITWENABLE MW2 WORD $0WDISABLE MW4 WORD $2CONFIG MW6 WORD $5500DATA1 MW10 INTDATA2 MW12 INTRSTCLR0 MW20 WORD $10RSTCLR1 MW22 WORD $20

RSTCLR2 MW24 WORD $40RSTCLR3 MW26 WORD $80

The ladder rungs in the subsequent pages explains the program along with selfexplanatory rung description 

Rung no 1Rung description : This rung informs module that it is configuring the module

INIT ------ WRITE_W ---- CFG_WREN+---|/|---| EN ENO|-+---------+---------+---------+---------+---( )---

| || |

#0 | SLOT || |

| |WENABLE| DATA |

| || |

#1 | LEN || || |

$42 | ADDR || |-------------------

Page 33: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 33/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 33 of 43

Rung no 2Rung description : This rung writes two byte configuration information of group 2and 3. Here, configuration data $DDF0 is written so that counters are configured as2 up down counters with reset input.

INIT CFG_WREN ------ WRITE_W ---- CFG_WRDN+---|/|---+---| |---| EN ENO|-+---------+---------+---------+---( )---

| || |

#0 | SLOT |

| || |

CONFIG | DATA || || |

#1 | LEN || || |

$20 | ADDR || |-------------------

Rung no 3Rung description : Once the configuration is written successfully, the module isinformed so. BOOLean variable INIT is 1 when configuration activity is completed inall respects.

INIT CFG_WRDN ------ WRITE_W ---- INIT+---|/|---+---| |---| EN ENO|-+---------+---------+---------+---(S)---

| || |

#0 | SLOT || || |

WDISABLE| DATA || || |

#1 | LEN || || |

$42 | ADDR |

| |-------------------

Rung no 4Rung description : Once INIT is 1, counter data (4 bytes) is read and stored atDATA1 mapped at MW10 and DATA2 mapped at MW12.

INIT ------ READ_W ----- DATA_RD+---| |---| EN ENO|-+---------+---------+---------+---------+---( )---

| || |

#0 | SLOT || || |

#0 | ADDR || |

| |#2 | LEN |

| || |

DATA1 | DATA || |-------------------

Page 34: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 34/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 34 of 43

Rung no 5Rung description : When Reset input to up down counter 0 is sensed, respectiveinput becomes 1. The required action can be programmed in the application programand latch is cleared by writing $1 to module memory byte 25.

INIT IX1.0 ------ WRITE_W ---- CLEAR0+---| |---+---| |---| EN ENO|-+---------+---------+---------+---( )---

| || |

#0 | SLOT |

| || |

RSTCLR0| DATA || || |

#1 | LEN || || |

$24 | ADDR || |-------------------

Rung no 6Rung description : When Reset input to up down counter 1 is sensed, respectiveinput becomes 1. The required action can be programmed in the application programand latch is cleared by writing $4 to module memory byte 25.

INIT IX1.2 ------ WRITE_W ---- CLEAR2+---| |---+---| |---| EN ENO|-+---------+---------+---------+---( )---

| || |

#0 | SLOT || || |

RSTCLR2| DATA || || |

#1 | LEN || || |

$24 | ADDR |

| |-------------------

Page 35: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 35/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 35 of 43

NEXGEN5000 with module version 1.00 or 2.01

FB MFIP from MFIP library is used to configure multi function input module.The 4 byte data is manipulated externally. The Module is configured by writing threedifferent configurations bytes on the module through FB MFIP as shown below –

Description of Parameters-

RUN VAR_IN BOOL This input should be TRUE for accessing the Multi FunctionModule. On rising edge of this input, the configuration bytes are

written to the module. Then from next scan onwards, thecounter data from the module is read and available at Outputparameter aCNTR

SLOT VAR_IN BYTE This parameter defines the slot number of the MFIP module.The valid Slot numbers are 0-31.

INTR_PULSE_CONFIG

VAR_IN BYTE This byte defines the configuration of first four I/Ps. The detailsare explained in following table.

COUNTER_CONFIG

VAR_IN BYTE This byte defines the configuration of counter modes. Thedetails are explained in following table.

PROG_DELAY_CONFIG

VAR_IN BYTE This byte defines the filter delays applicable for four differentgroups of I/Ps. Details are explained on following pages.

DONE VAR_OUT BOOL It is TRUE when the MFIP module is present in the definedSLOT and it is healthy. As long as this O/P is TRUE, the

counter values are properly read from the module.IO_ERR VAR_OUT BOOL This O/P is TRUE if the identity of the module present is defined

SLOT is not matching with that of MFIP module. Even if theSLOT is empty or the module is faulty, then this O/P is TRUE.

CONFIG_ERR VAR_OUT BOOL This O/P is TRUE if the module is not properly configured. Inworking condition of the module, this O/P is FALSE.

aCNTR VAR_OUT ARRAY[0..3] OFBYTE

This array holds the values of four counter bytes read from themodule. These values should be interpreted as per countermodes defined by COUNTER_CONFIG. Detail explanation isgiven on following pages.

Page 36: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 36/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 36 of 43

Interrupt and Pulse Catch Configuration byte- INTR_PULSE_CONFIG

This parameter of the MFIP FB defines the type of Input for GR-0 (CH 0 to CH 3). Itspecifies whether the inputs are to be used as Programmable Delay Input or SpecialFunction Input.Special Functions for Inputs in GR-0 are

• CH 0 - Interrupt Input

• CH 1 - Interrupt Input

• CH 2 - Pulse Catch Input

• CH 3 - Pulse Catch InputIf the inputs are defined as Programmable Delay Inputs, thenPROG_DELAY_CONFIG byte defines the delay (filter time). If the inputs are definedas Special inputs, then once the input is sensed it gets latched and it is to be clearedby CPU after reading it.

D7 D6 D5 D4 D3 D2 D1 D0

Counter Mode Configuration byte- COUNTER_CONFIG

This parameter of the MFIP FB defines the configuration of on board counters andexternal reset inputs for these counters. It specifies whether the inputs of GR. 2 (CH 8to CH 11) are to be used as Programmable Delay Inputs or Special Function Input asReset to Counters.

Counter Reset Inputs [GR-2 - CH 8 to CH11]

If these inputs are defined as Programmable Delay Inputs, then

PROG_DELAY_CONFIG Byte defines the delay (filter time). Alternately these Inputscan be assigned for special function as Reset to Counters. Once these Inputs aresensed, they remain latched to inform the CPU that respective counter has beenreset. After reading the status of these Inputs, CPU should clear their status.

CH 3

0 Programmable Delay Input

1 Special Input as Pulse Catch Input

Reserved 

CH 2

0 Programmable Delay Input

1 Special Input as Pulse Catch Input

CH 1

0 Programmable Delay Input

1 Special Input as Interrupt Input

CH 0

0 Programmable Delay Input

1 Special Input as Interrupt Input

Page 37: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 37/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 37 of 43

Counter Modes [GR3 – CH 12 to CH15]

Two counter modes are provided. Basic four 8 bit counters (C0, C1, C2, C3) aredivided into 2 groups (Cntr.Gr.1 and Cntr.Gr.2).

• Cntr Gr 1 - Cntrs C0 & C1 Input CH 12 & CH 13 respectively.

• Cntr Gr 2 - Cntrs C2 & C3 Input CH 14 & CH 15 respectively.

Mode 1 - Four 8 bit UP Counters (C0, C1, C2, and C3)Mode 2 - Two 16 bit UP / DOWN Counters with Direction and Count Inputs (Cntr.Gr.1& Cntr.Gr.2)

External Reset Input to counter [GR-2 - CH 8 to CH11]

a) For 16 bit counters (Mode 2 & Mode 3) reset inputs are CH. 8 for Cntr.Gr.1 &CH. 10 for Cntr.Gr.2. The other two inputs CH 9 & CH 11 can be used asProgrammable Delay Inputs.

b) For 8 bit counters (Mode 1) each 8-bit counter. (C0 to C3) has separateReset Input (CH 8 to CH 11) respectively.

D7 D6 D5 D4 D3 D2 D1 D0

Mode Selection for Cntr Gr 1

0 0 Mode 1

0 1 Mode 2

1 0 Invalid

1 1 Invalid

Mode Selection for Cntr Gr 2

0 0 Mode 1

0 1 Mode 2

1 0 Invalid

1 1 Invalid

CH11

0 Programmable Delay Input

1 Special Input as Reset toCounter C3

CH10

0 Programmable Delay Input

1 Special Input as Reset toCounter C2 or Cntr Gr 2

CH8

0 Programmable Delay Input

1 Special Input as Reset toCounter C0 or Cntr Gr 1

CH9

0 Programmable Delay Input

1 Special Input as Reset toCounter C1

Page 38: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 38/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 38 of 43

Programmable Delay Configuration byte- PROG_DELAY_CONFIG 

This byte defines the programmable delay for each group of inputs, when the inputsare configured as programmable delay inputs.

Total 16 inputs are divided into four groups as mentioned below –

GR 0 Input 0 to 3GR 1 Input 4 to 7GR 2 Input 8 to 11GR 3 Input 12 to 15

b7 b6 b5 b4 b3 b2 b1 b0

The example below shows how to program FB MFIP and use it in the applicationprogram.

The configuration data defined at I/P variables of FB MFIP is transferred to MultiFunction Input module on rising edge of 'RUN' input. The Input and Output image ofthe module is updated in regular I/O Scan. The contents of on board counters areread from the module through FB MFIP, as long as the RUN input is TRUE. Thecounters values are available from second scan onwards, if the IO_ERR andCONF_ERR outputs are FALSE.

• Multi function Input Module is configured in slot 1 of PLC.

• It is configured as either 4 x 8 Bit Up Counting Mode or as 2 x 16 bit Up / DownCounting Mode, by calling appropriate POU from PLC_PRG.

• For 4 x 8 Bit Up Counting Mode, the CounterConf BYTE := 16#CC.

• For 2 x 16 Bit Up / Down Counting Mode, CounterConf BYTE := 16#55.

• For 4 x 8 bit Up Counting Mode, the on board counter value is accumulated inexternal array of WORD - Acc_Data[0..3].

• For 2 x 16 bit Up / Down Counting Mode, the on board counter value is copied toexternal array of WORD - Acc_Data[0..1].

Group 0 Delay

0 0 10 ms

0 1 1 ms

1 0 0.1 ms

1 1 Invalid

Group 1 Delay

0 0 10 ms

0 1 1 ms

1 0 0.1 ms

1 1 Invalid

Group 2 Delay

0 0 10 ms

0 1 1 ms

1 0 0.1 ms

1 1 Invalid

Group 3 Delay

0 0 10 ms

0 1 1 ms

1 0 0.1 ms

1 1 Invalid

Page 39: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 39/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 39 of 43

Figure 11 :Program PLC_PRG

Page 40: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 40/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 40 of 43

Figure 12: Program Up Counter

Page 41: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 41/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 41 of 43

Figure 13 :Program Up Down Counter

Page 42: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 42/43

Messung Systems NEXGEN PLC I/O Modules

Multi Function Input Module (4633) Published Nov 2003Document No.: ED-2002-021/V1.0 Page 42 of 43

Page 43: ED-2002-021 Multi Function Input Module (4633)

8/12/2019 ED-2002-021 Multi Function Input Module (4633)

http://slidepdf.com/reader/full/ed-2002-021-multi-function-input-module-4633 43/43

Messung Systems NEXGEN PLC I/O Modules

MESSUNG SYSTEMSEL – 2, J - Block, MIDC, Bhosari,PUNE – 411 026. INDIATel. – (+91)–020–2712 0807, 2712 2807Fax. –(+91)–020–2712 0391

NEXGEN PLC I/O Modules

Multi Function Input Module (4633)

Document No.:ED-2002-021