EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 587

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.16 External Device
585
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Function and operation explanation
1. 16-bit operation (GBIN, GBINP)
1) This instruction can be used for detecting an absolute position by a gray code type encoder.
2) The device specified by can store a value from 0 to 32,767.
2. 32-bit operation (DGBIN, DGBINP)
1) A gray code can be converted into a binary value of up to 32 bits.
2) The device specified by can store a value from 0 to 2,147,483,647.
Cautions
1) When handling array data or 32-bit data in a structured program, a 16-bit device cannot be specified
directly as in the case of a simple project.
Use a label to handle array data or 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
2) When an input relay (X) is specified as , the response delay will be "Scan time of PLC + Input filter
constant."
The input filter value can be changed in X000 to X017 using REFF, REFFP or D8020 (filter adjustment)
so that the filter constant delay is eliminated.
*1. The FX
3G and FX2N-16M PLCs use X000 to X007.
3) Some restrictions to applicable devices
S1: Applicable to the FX
3U, FX3UC and FX3G PLCs only.
S2: Applicable to the FX
3U and FX3UC PLCs only.
[Structured ladder]
When the device specified by is K3X000 and the device
specified by is D10
s
d
This instruction converts and transfers data from
the source (gray code) to the destination (binary).
GBIN
EN ENO
d
s
Command
input
Conversion source data
or word device storing
conversion source data
Word device storing
data after conversion
110111010110
0100101100100000
b0
b15
X10 X7 X0
GRY 1234
X13
BIN 1234
D10
[ST]
GBIN(EN,s,d);
[Structured ladder]
DGBIN
EN ENO
d
s
Command
input
Label 1
*1
Label 2
*2
*1.
Label 1 is defined as the conversion source data or
the device that stores the conversion source data.
Label 2 is defined as the device that stores the data
after conversion.
*2.
[ST]
DGBIN(EN,s,d);

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals