hit counter script

Mitsubishi Electric FX3G SERIES Programming Manual page 661

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Explanation of function and operation
FNC232 to FNC237 are data comparison instructions connected to other contacts in series.
The contents of
S
(ON) or non-conductive (OFF) depending on the comparison result.
FNC No.
232
233
234
236
237
238
Cautions
1. Negative value
When the most significant bit is "1" in the data stored in
comparison.
• In the 16-bit operation: bit 15
• In the 32-bit operation: bit 31
2. When using 32-bit counters (including 32-bit high-speed counters)
Make sure to execute the 32-bit operation (such as "ANDD=", "ANDD>" and "ANDD<") when comparing 32-bit
counters (C200 to C255).
If a 32-bit counter is specified in the 16-bit operation (such as "AND=", "AND>" and "AND<"), a program error or
operation error will occur.
3. Programming of data comparison instructions
When programming in GX Developer, symbols "≤" and "≥" cannot be input.
Separate "≤" into "<" and "=", and separate "≥" into ">" and "=".
The input procedure is described below:
Operating procedure
a) Display the circuit program edit window, and put the cursor in a position where a data comparison instruction
is to be used.
b) Input "Instruction" → "space" → "value or device" → "space" → "value or device".
For an input example, refer to "Instruction input window in GX Developer" shown below.
c) Click the [OK] button.
d) Input other contacts and coil drive units consecutively.
Instruction input window in GX Developer
Program example
X000
FNC232
K200
AND=
X001
FNC236
K-10
AND<>
X002
FNC233
K678493
ANDD>
M3
are compared with the contents of
1
16-bit instruction
32-bit instruction
AND=
AND>
AND<
AND<>
AND<=
AND>=
<Input example for 16-bit operation>
<Input example for 32-bit operation>
S
S
1
2
C10
Y10
D0
Y11
SET
D10
M50
28 Data Comparison – FNC220 to FNC249
28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison
in binary format, and a contact becomes conductive
S
2
ON condition
ANDD=
S
ANDD>
S
ANDD<
S
ANDD<>
S
ANDD<=
S
1
ANDD>=
S
1
or
, it is regarded as a negative value in
S
S
1
2
When X000 is ON and the current value of the counter
C10 is "200" Y010 is driven.
When X001 is OFF and the contents of the data register
D0 are not "-10", Y011 is set.
When X002 is ON, and the contents of the data registers
D11 and D10 are less than "K678,493", or when M3 turns
ON, M50 is driven.
OFF condition
=
S
S
1
2
1
>
S
S
<=
1
2
1
<
>=
S
S
1
2
1
=
S
S
1
2
1
<=
S
S
<
2
1
>=
S
S
>
2
1
21
22
S
2
S
2
S
2
S
2
S
2
23
S
2
24
25
26
27
28
29
30
659

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents