Using Switches And Sensors - Mitsubishi Electric FX2N Beginners Manual

Hide thumbs Also See for FX2N:
Table of Contents

Advertisement

The Basic Instruction Set
3.4.3

Using switches and sensors

Before we continue with the description of the rest of the instructions we should first describe
how signals from switches, sensors and so on can be used in your programs.
PLC programs need to be able respond to signals from switches, buttons and sensors to per-
form the correct functions. It is important to understand that program instructions can only poll
the binary signal state of the specified input – irrespective of the type of input and how it is
controlled.
Usually, switches with make contacts are used. Sometimes, however, break contacts are used
for safety reasons – for example for switching off drives (see section 3.5).
The illustration below shows two program sequences in which the result is exactly the same,
even though different switch types are used: When the switch is operated the output is set
(switched on).
24 V
X0
24 V
X0
3 – 8
When a make contact is ope-
Make
rated the input is set (ON, sig-
contact
nal state "1")
When a break contact is ope-
Break
rated the input is reset (OFF,
contact
signal state "0")
LD X000
0
OUT Y000
LDI X000
0
OUT Y000
An Introduction to Programming
As you can imagine, this means that when
you are writing your program you need to be
aware whether the element connected to the
input of your PLC is a make or a break device.
An input connected to a make device must be
treated differently to an input connected to a
break device. The following example illustra-
tes this.
X000
Switch operated
ON
X0
OFF
ON
Y0
OFF
X000
Switch operated
ON
X0
OFF
ON
Y0
OFF
Y000
t
Y000
t
MITSUBISHI ELECTRIC

Advertisement

Table of Contents
loading

Table of Contents