beautypg.com

Delta RMC151 User Manual

Page 10

background image

RMC70/150 and RMCTools User Manual

EXP Function .................................................................................................................................................... 349

FILL Function ................................................................................................................................................... 350

FLOOR Function .............................................................................................................................................. 351

LENGTH Function ........................................................................................................................................... 352

LIMIT Function ................................................................................................................................................ 352

LOG Function ................................................................................................................................................... 352

LN Function ...................................................................................................................................................... 353

LOG_EVENT Function .................................................................................................................................... 353

MAX Function .................................................................................................................................................. 354

MIN Function.................................................................................................................................................... 354

MROUND Function .......................................................................................................................................... 355

POLY Function ................................................................................................................................................. 355

REAL_TO_DINT Function .............................................................................................................................. 356

REG_REAL, REG_DINT, REG_DWORD Functions ..................................................................................... 356

ROL Function ................................................................................................................................................... 357

ROR Function ................................................................................................................................................... 357

ROUND Function ............................................................................................................................................. 358

SEL Function .................................................................................................................................................... 358

SHL Function .................................................................................................................................................... 359

SHR Function.................................................................................................................................................... 359

SIGNUM Function ............................................................................................................................................ 360

SIN Function ..................................................................................................................................................... 360

SINH Function .................................................................................................................................................. 361

SQRT Function ................................................................................................................................................. 361

TAN Function ................................................................................................................................................... 361

TANH Function ................................................................................................................................................ 362

TRUNC Function .............................................................................................................................................. 362

TRUNC_REAL Function.................................................................................................................................. 362

User Functions......................................................................................................................................363

User Functions .................................................................................................................................................. 363

Declaring Variables and Parameters in User Functions .................................................................................... 366

Example User Functions ................................................................................................................................... 367

Discrete I/O ......................................................................................................... 369

Discrete I/O Overview..........................................................................................................................369

Using Discrete I/O ................................................................................................................................371

Configuring Discrete I/O ......................................................................................................................373

Programming Examples and Tips ......................................................................... 374

Programming Examples and Tips ........................................................................................................374

Example: A Basic User Program ..........................................................................................................375

Example: A Simple User Program .......................................................................................................378

Example: Closed Loop Motion on Startup ...........................................................................................379

Example: Jogging an Axis ....................................................................................................................382

Example: Creating a Timer ..................................................................................................................385

Example: Time-out ...............................................................................................................................386

Example: Using Arrays ........................................................................................................................387

Application Tip: Emergency Stops ......................................................................................................389

Communication ........................................................................................ 393

RMC Communications Overview ........................................................................... 393

Communication Statistics ..................................................................................... 395

Monitor Port — USB or RS-232 ............................................................................. 395

Indirect Data Map ................................................................................................ 398

Communicating with HMIs ................................................................................... 400

Discrete I/O for Communications ........................................................................ 402

Command Request and Acknowledge Bits ............................................................ 403

Ethernet ............................................................................................................... 405

Ethernet Communications Overview ...................................................................................................406

Using Ethernet with RMCTools ...........................................................................................................408

Using the RMC's PLC Ethernet Emulation ..........................................................................................408

x

Delta Computer Systems, Inc.

This manual is related to the following products: