Accell MPC-68K Series User Manual

Browse online or download User Manual for Unknown Accell MPC-68K Series. Accell MPC-68K Series User`s manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 45
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
MPC-684 Programing tutorials
ACCEL
Last update May 24,2005
(MPC-684F)
This tutorial is an outline for MPC-684 programming.
Please see the “MPC-684 Users manual” for details about products and commands.
For the newest information you should look at the web site http://www.accelmpc.co.jp
1
Page view 0
1 2 3 4 5 6 ... 44 45

Summary of Contents

Page 1 - MPC-684 Programing tutorials

MPC-684 Programing tutorials ACCEL Last update May 24,2005 (MPC-684F) This tutorial is an outline for MPC-684 programming. Please see the “M

Page 2

Input commands There are 3 types of input control.  Direct executed commands: Single command statements executed immediately.  Program executed

Page 3

I/O check There are 2 ways to check input and output conditions. To check by command  The following are commands used to complete a basic I/O chec

Page 4

 You can check about MPG-314's INPUT by "INCHK_314" command. #INCHK_314 /* scan start X_S1 ON Y_S1 ON Z_S1 __ U_S1 __ X_S2

Page 5 - MPC-684 family

How to input program  To write a program include a line number before the command. Press the enter key after writing each command, so it can be tran

Page 6 - The feature of the MPC-684

Subroutine  A subroutine is a piece of code, much like any code in a program. A subroutine has an entry point and an exit point. At the entry of a

Page 7 - Software

Parameter of subroutine, return value  You can set a subroutine with parameters. The parameter values are activated by the main routine using the

Page 8 - How to connect

Edit of a program  Explanation of useful operations for editing a program LIST display  ‘LIST’ is the command used most. LIST [n,m] n: Start l

Page 9 - BASIC like + multi tasking

Insert statement 10 *LOOP 20 ON 0 30 OFF 0 40 GOTO *LOOP 10 *LOOP 20 ON 0 25 TIME 50<Enter> 30 OFF 0 4

Page 10 - Input commands

Other key operations 18

Page 11 - Check by the “I/O checker”

How to program save to the PC, load from the PC Program save to the PC  You can save the program to your PC by pushing 'F9' then selecti

Page 12

Index MPC-684 family...

Page 13 - Comment

Program load from the PC  You can load the program from your PC by pushing 'F9' then selecting 'Program Load' from the menu. 

Page 14 - Subroutine

I/O control  You can control an I/O Port for every bit or byte.  Bit operating is for simple device control. ex. solenoid valves, relays and switch

Page 15

Variable, Array variable, String variable, Memory I/O  MPC-684 has a lot of variables, array variables, string variables and memory I/Os. These are

Page 16 - LIST display

Array variable  A DIM command secures specific array variable partitions in the memory. 10 DIM ARRY(100) /* secure ARRY(0)ARRY(99) 20

Page 17 - Delete statement

Calculation + addition A=B+C - substruction A=B-C * multiplication A=B*C / division A=B/C % surplus A=B%C & logical multiplication (AND) A

Page 18 - Other key operations

Pulse generation  This chapter introduces pulse generating using the MPG-314 board.  It explains how to utilize the MPG-314 for an XY robot. Initi

Page 19 - Program save to the PC

Setup of maximum high speed and acceleration.  Maximum high speed and acceleration can be set by using the ACCEL command. Drive speed can be decide

Page 20 - Printing

Move to the origin (HOME)  HOME is the command for programming the movement of a robot back to the staring point of its action.  Format HOME n

Page 21 - Byte control

Absolute coordinate movement 1) MOVL is the command for linear interpolation. You can give variables or constants to define the parameters. 10 P

Page 22 - Local variable

Relative coordinate movement 1) RMVL is the command for linear interpolation of relative coordinate movement. You can give variables or constants t

Page 24 - Calculation

Continuous interpolation  The following figure is an example of continuous interpolation by using the MOVT command.  It sets point data between t

Page 25 - Initial settings

PALET declaration  PALET is the command for moving between palettes.  The PALET command calculate all working points (PLn(N)) on a palette by u

Page 26

Conditional stop Pulse generation stops after sensors receive data indicating the need for the stop condition to take effect.  1) The STOP command

Page 27 - Move to the origin (HOME)

Multi-task  MPC-684 has 32 tasks ( task0 : Main-task. task1~31 : sub-tasks)  Main-task executes immediately after the RUN command (program mode) o

Page 28 - Absolute coordinate movement

RS-232 communication  MPC-684 has two RS-232 communication ports for interfacing to external devices. You can control the ports by using commands.

Page 29 - Relative coordinate movement

Debugging Basic debugging (run/stop/check)  One useful basic process of debugging of the MPC is by executing the program, stopping it and then che

Page 30 - Continuous interpolation

How to know the cause of machine stoppage  When the machine stops while in automatic operation, please connect the MPC-684 to FTMW without turning

Page 31 - PALET declaration

Special program  The prompt returns to the FTMW when task 0 is ended using the END command. Then you can execute the commands for an I/O and variab

Page 32 - Conditional stop

Use touch panel  The MPC-684 supports the 'Direct access protocol' on the Digital Electron Corporation’s GP series touch panel.  You can

Page 33 - The commands for multi-task

When you use MBK-SH  The MBK-SH connects to the touch panel at RS-422 38400bps.  The MBK-SH board is an independent CPU board, therefore doesn&ap

Page 35 - Subroutine execute

Command List I/O ? Reading of Bit (HSW Alternative) ALT Switch ON/OFF CLR_OUTP Initialize Output (specified the board) HI

Page 36

HPT Read Input Port INCHK_314 Input Monitor INSET_314 Set Input Port Function M_RMVS Asymmetric Acceleration/Deceleration Mov

Page 37 - Special program

PALET4 PALET Declaration PG PG Declaration PGSEL PG Declaration PL1 Palette Point PL2 Palette Point PL3

Page 38 - When you use MBK-RS

Floating Point Operation CALF Arithmetics GETF Retrieve Data PRF Display Internal Data SETF Delivery of Data Sy

Page 39 - When you use MBK-SH

Memory Access PEEK Readout of User Memory POKE Write User Memory Maintenance ERASE Clear Program of Flash ROM MEM

Page 40 - MPG-314 Exclusive

GOSUB Subroutine Call (Argument Pass) GOTO Unconditional Branch IF Conditional Branch LOOP Loop NEXT Loo

Page 41 - MPG-68K Compatible

MPC-684 family  Outline of MPC-684 series MPC-684 main CPU board serial communication port (RS-232) 3ch 4 outputs 8 inputs MOP-096 output bo

Page 42 - Calendar

The feature of the MPC-684  Program capacity 500Kbytes( about 25000 lines)  Point data 4 by 13000 points  Global variable 2000  Local vari

Page 43

Program development environment Hardware  Personal computer OS: Microsoft Windows supported  Programming cable Connect to a MPC-684 and a per

Page 44 - Control Statement

How to connect  Connect a personal computer to the MPC by the programming cable, then turn the MPC on. MPC-684 Windows PC Programming Cable Compute

Page 45

 When it is able to connect normally, an opening message will display on the edit screen. Opening message Prompt (Edit screen)  The meaning of t

Comments to this Manuals

No comments