0% found this document useful (0 votes)
65 views3 pages

MCH100 Run Program Function Overview

The _MCH100_RunProgram function block executes program operations on a specified Motion Control Unit. It takes in parameters like unit number, task number, program number, and start mode. Its outputs include status flags for operation completion, aborts, and errors. When the execute input turns on, the designated program will run on the specified task. The outputs provide feedback on the program's execution status.

Uploaded by

Joseph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views3 pages

MCH100 Run Program Function Overview

The _MCH100_RunProgram function block executes program operations on a specified Motion Control Unit. It takes in parameters like unit number, task number, program number, and start mode. Its outputs include status flags for operation completion, aborts, and errors. When the execute input turns on, the designated program will run on the specified task. The outputs provide feedback on the program's execution status.

Uploaded by

Joseph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

_MCH100_RunProgram (1/3)

MCH
100

Run Program: _MCH100_RunProgram

Basic
function
Symbol

Executes program (memory) operations.


Always ON (P_On)

_MCH100_RunProgram
(BOOL)
EN
Unit No.
Task No.
Start
Program No.
Start mode

File name
Applicable
models

Conditions
for usage
Function
description

(INT)
UnitNo
(INT)
TaskNo
(BOOL)
Execute
(INT)
ProgramNo
(INT)
StartMode

(BOOL)
ENO
(BOOL)
Done
(BOOL)
CommandAborted
(BOOL)
Error
(WORD)
ErrorID
(INT)
ExecutionNo

Program Operation completed


Abort
Error flag
Error code
Program No. in execution

Lib\FBL\omronlib\PositionController\MCH\_MCH100_RunProgram11.cxf
Motion Control Unit
CS1W-MCH71, CJ1W-MCH71
CPU Unit
CS1*-CPU**H Unit version 3.0 or higher
CJ1*-CPU**H Unit version 3.0 or higher
CJ1M-CPU** Unit version 3.0 or higher
CP1H
CX-Programmer
Version 5.0 or higher
None
When Start (Execute) turns ON, a Program Operation specified with Program No. (ProgramNo) will be
executed on the task specified with Unit No. (UnitNo) and Task No. (TaskNo).
The Program Operation completed (Done) will turn ON when a Program Operation by this FB is completed.
The Abort (CommandAborted) will turn ON instead when a Program Operation is interrupted by a pause,
etc.
The Error Flag (Error) will be turned ON and the Error Code (Error code) will be output if an error occurs for
this FB. These statuses are not output for errors of other FBs or instances.
These statuses will be reset when Start (Execute) turns OFF. If Start (Execute) turns OFF before completion
of the Program Operation, the status will be set for at least one cycle when a corresponding condition
occurs.
EN

ON
OFF

ENO

ON
OFF

Execute

ON
OFF

Speed
Command
speed

FB
precautions
EN input
condition
Restrictions
Other

Done

ON
OFF

Error

ON
OFF

This FB can be used only in Manual Mode. It cannot be used in Automatic Mode. For details, refer to the
manuals listed in Related manuals below.
Connect the EN input to the Always On Flag (P_On).
If a different type of bit is connected to EN, the FB outputs will be maintained when the connected bit is
turned OFF.
This FB uses bits in the Bit Areas of the applicable Motion Control Units listed above. Do not use these bits
as Output Bits connected directly to the right bus bar in the ladder programs.

_MCH100_RunProgram (2/3)

Application
example

When the Start trigger turns from OFF to ON, the Motion Control Unit of the Unit No. 0 starts the Program
Operation of the specified Program No. Note that a program that controls the Servomotor (J01) must be
created in the Motion Control Unit in advance.
Unit No.: 0

&0
CPU

MCH
Servomotor
J01

Start trigger

Bit B

Bit D

Bit C

Bit A

Bit A

_MCH100_RunProgram

Always ON (P_On)
Unit No.
&0
Task No.
&1
Start
Bit A
Program No.
&0
Start mode
&0

Related
manuals

(BOOL)
ENO

(BOOL)
EN
(INT)
UnitNo
(INT)
TaskNo
(BOOL)
Execute
(INT)
ProgramNo
(INT)
StartMode

(BOOL)
Done
(BOOL)
CommandAborted
(BOOL)
Error
(WORD)
ErrorID
(INT)
ExecutionNo

Error code
Program No. in execution
D0

SYSMAC CS-series CS1W-MCH71 Motion Control Units Operation Manual (W419)


SYSMAC CJ-series CJ1W-MCH71 Motion Control Units Operation Manual (W435)

Variable Tables
Input Variables
Name
EN

Variable name
EN

Data type
BOOL

Default

Range

Unit No.
Task No.
Start
Program No.
Start mode

UnitNo
TaskNo
Execute
ProgramNo
StartMode

INT
INT
BOOL
INT
INT

&0
&1
0 (OFF)
&0
&4

&0 to &15
&1 to &8

Output Variables
Name
ENO

Variable name
ENO

Data type
BOOL

Program Operation
completed
Abort

Done

BOOL

CommandAborted

BOOL

Error flag
Error code

Error
ErrorID

BOOL
WORD

ExecutionNo

INT

Program
execution

Program Operation completed


Bit B
Abort
Bit C
Error flag
Bit D

No.

in

Range

&0 to &499
&0 to &2

Description
1 (ON): Starts FB
0 (OFF): Does not start FB

: Starts Program Operation


Specify a Program No.
&0: Starts from the top of a program.
&1: Starts from the current block.
&2: Starts from the next block.

Description
1 (ON): FB operating normally
0 (OFF): FB not operating normally
1 (ON) indicates that a Program Operation is
completed.
1 (ON): Aborted
Stopped with the Deceleration Stop Bit (Motion Task
Control Bit).
Stopped with Block Stop.
A axis is changed into the manual mode.
1 (ON) indicates that an error has occurred in the FB.
The error code of the error occurred in the FB will be
output. For details of the errors, refer to the manual
listed in the Related manuals above. When Unit No. or
Task No. is out of the range, #0000 will be output.
The Program No. of a program being executed is
output.
It is cleared to 0 when a program execution is
completed.
Note that it is not cleared when a program execution is
interrupted by an error or cancel.

_MCH100_RunProgram (3/3)

Version History
Version
1.00
1.10

Date
2005.4
2009.12.

Contents
Original production
Solved the problem that the ErrorStop bit and the StandStill bit are not turned ON as
specified.

Note
This manual is a reference that explains the function block functions.
It does not explain the operational limitations of Units, components, or combinations of Units and components. Always read
and understand the Operation Manuals for the systems Units and other components before using them.

You might also like