Fnc171 - Gbin / Gray Code To Decimal Conversion - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
22.2
FNC171 – GBIN / Gray Code to Decimal Conversion
Outline
This instruction converts a gray code into a binary value, and transfers it.
1. Instruction format
FNC 171
D
GBIN
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
Explanation of function and operation
1. 16-bit operation (GBIN and GBINP)
Command
input
FNC171
GBIN
When
S
is K3X000 and
GRY 1234
D10
BIN 1234
- This instruction can be used for detecting an absolute position by a gray code type encoder.
-
can store a value from 0 to 32,767.
S
2. 32-bit operation (DGBIN and DGBINP)
- A gray code can be converted into a binary value of up to 32 bits.
-
can store a value from 0 to 2,147,483,647.
S
Caution
When an input relay (X) is specified as
constant".
The filter constant can be changed in X000 to X017 using REFF (FNC 51) instruction or D8020 (filter
adjustment) so that the filter constant delay is eliminated.
562
Mnemonic
16-bit Instruction
P
GBIN
5 steps
GBINP
Conversion source data or word device storing conversion source data
Word device storing data after conversion
Digit Specification
S
D
D
is D10
X13
X10 X7
0
1
1
0
1
b15
0
0
0
0
0
1
0
0
1
22.2 FNC171 – GBIN / Gray Code to Decimal Conversion
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
This instruction converts and transfers data from
the source (gray code) to the destination (binary).
X0
0
1
1
1
0
1
1
b0
1
0
1
0
0
1
0
, the response relay will be "Scan time of PLC + Input filter
S
22 External Device – FNC170 to FNC179
Mnemonic
Operation Condition
DGBIN
9 steps
DGBINP
16- or 32-bit binary
16- or 32-bit binary
Others
Con-
Real
Index
stant
Number
V Z Modify K H
E
Continuous
Operation
Pulse (Single)
Operation
Data Type
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents