
Chapter 5 Positioning Instructions
5
-
49
5.3 Positioning Function Blocks (for XEC)
5.3.1 General for Function Block
In the XEC PLC, the input/output variables and their functions which are applied commonly for all the
function blocks used for internal positioning are as follows..
Classification
Variable
Name
Data Type
Description
Input
Variables
REQ
BOOL
•Request for function block execution
- If the condition in connection with this area is
satisfied during the software running and 0→1
(edge or level), the function block is executed.
BASE
USINT
•Base Number
- This area is for setting up the number of the base
where the positioning module is mounted. (In the
internal positioning of XGB, fix this to 0.)
SLOT
USINT
•Slot Number
- This area is for setting up the number of the slot
where the positioning module is mounted. (In the
internal positioning of XGB, fix this to 0.)
AXIS
USINT
•Number of the axis in use
- X-axis: 0, Y-axis: 1
Output
Variables
DONE
BOOL
•Indicates completion of the function block execution
- If the function block is executed without error,
“1” is outputted and maintained until the next
execution. If erroneous, “0” is outputted.
STAT
UINT
•Error State Indication
- This area indicates the number of the error
occurred in the start-up of the function block.
(The errors occurred during operation are
indicated in the K area which outputs error
codes.)
Other I/O variables excluding the common variables presented in the above table are described
below.
(1) Common Error Codes for Function Block
The types and description of the common error codes which may occur in the starting up of the function
blocks related with internal positioning are as follows.
Error
Code
Error Type
Countermeasures
0
Function block normally executed
-
1
Base No. exceeded setting range
Set the base No. to “0” for internal positioning.
3
Slot No. exceeded setting range
Set the slot No. to “0” for internal positioning.
6
Axis range No. exceeded setting range
Adjust the axis No. within the allowable range of the
function block
(0: X-axis, 1: Y-axis)
10
A new function block was executed
while the previous instruction has not
been completed
Modify the program so that a new function block can be
executed after completion of the previous instruction.
11
Set-up auxiliary input value exceeded
allowable range
Adjust the value within the allowable range.
For other error code, see “Appendix 1. Error Code List.”
Summary of Contents for XBC-DN20S
Page 210: ...Chapter 7 Program Examples of Positioning 7 6 2 XEC ...
Page 215: ...Chapter 7 Program Examples of Positioning 7 11 2 XEC ...
Page 220: ...Chapter 7 Program Examples of Positioning 7 16 2 XEC ...
Page 225: ...Chapter 7 Program Examples of Positioning 7 21 2 XEC ...
Page 232: ...Chapter 7 Program Examples of Positioning 7 28 2 XEC ...
Page 237: ...Chapter 7 Program Examples of Positioning 7 33 2 XEC ...
Page 240: ...Chapter 7 Program Examples of Positioning 7 36 ...
Page 309: ...Appendix 4 Dimension App 4 4 XBC DN64H XEC DN64H XEC DP64H XBC DR64H XEC DR64H ...
Page 311: ...Appendix 4 Dimension App 4 6 XBE DC08A XBE DC16A XBE TN08A XBE TN16A XBE DR16A XBE RY08A ...
Page 312: ...Appendix 4 Dimension App 4 7 5 Communication module XBL C41 21A XBL EMTA ...
Page 313: ...Appendix 4 Dimension App 4 8 5 Special module XBF AD04A XBF DV04A ...