2.11.2 Functions And Operation Examples Of Branch Pointers - Mitsubishi Electric MELSEC-Q Structured Programming Manual

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
3. FX
/FX
/FX
0S
0
Series
Branch type
FX
/FX
0S
0
PLCs
FX
PLCs
0N
FX
U
/FX
2C
PLCs
FX
PLCs
U
(Ver. 2.30 or
earlier)
Reference

2.11.2 Functions and operation examples of branch pointers

The roles and operations of branch pointers are as described below.
Because all of these pointers are combined with instructions, refer to the explanation of each instruction for
detailed use methods.
1. Applied instructions using branch pointers (P)
• CJ (conditional jump) instruction
X001
Label
P0
• CALL (call subroutine) instruction
X001
Label
P1
• Role of the pointer P63 for jump to the END step
118
/FX
/FX
PLCs
0N
U
2C
END jump type
-
P0 to P63
64 points
-
P0 to P62
P64 to P127
P63
127 points
P0 to P62
P63
63 points
→ FX Structured Programming Manual [Basic & Applied Instruction]
CJ
EN
ENO
p
P0
CALL
EN
ENO
P1
p
FEND
EN
ENO
SRET
EN
ENO
Input interrupt type
I00 (X000)
I10 (X001)
I20 (X002)
I30 (X003)
4 points
I00 (X000)
I10 (X001)
I20 (X002)
I30 (X003)
I40 (X004)
I50 (X005)
6 points
→ FX Structured Programming Manual [Application Functions]
Main program
Subroutine
program
2 Devices in Detail
2.11 Pointer [P and I]
Timer interrupt
Counter interrupt type
type
-
-
I010 I040
I020 I050
I030 I060
I6
6 points
I7
I8
3 points
When X001 turns ON, the PLC
jumps to the label position
specified by the CJ instruction,
and executes the subsequent
program.
When X001 turns ON, the PLC
executes a subroutine in the
label position specified by the
CALL instruction, and then
returns to the original position by
the SRET instruction.
-
-
-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents