AMS DCB-274 manual Loop on Port, Lower case L Option Flags, Flags and Numbers

Page 50

ADVANCED MICRO SYSTEMS, INC.

SMC-27X2 SOFTWARE

 

 

 

 

 

 

Command

Function

 

Type

 

NV Bytes

L

Loop on Port

 

Program

 

3

 

 

 

 

 

Mnemonic

Data 1

Data 2

Result

 

 

(Name) L (a, c)

0-2048

 

Condition (0-9)

None

L (Loop on Port)

Loop on Port will test the specified input port for the required condition (c). If the port is NOT at the required level then the program will jump to the specified address. If the address is to a previous instruction then the program will loop until it becomes the specified level. The program will then continue to the next step. The PLC mode inverts the input high/low definitions.

Input ports are available as follows:

Port

Low

High

 

 

 

1

0

1

2

2

3

3

4

5

4

6

7

5

8

9

The SMC-27X2 can view all ports as inputs and outputs, restricted by contention with external hardware. Any “output” port can be modified, then subsequently used in conjunction with the L, G 2048, or A129 (read) command. The SMC-27X2 has an additional feature of implementing a “wait till” function. The standard loop tests the condition every 2-3ms. If the unique address is 2048, the controller executes a tight loop at this instruction, monitoring the specified condition. When the condition is met, program execution continues.

This feature is helpful in situations where the condition may be of short duration. This command is usable only in NV memory program execution. Following is an example of this command:

P 0

 

Enter program mode.

 

 

 

 

L0 4

 

Stay at location 0 until port 3 is low then go to next command in program.

 

+ 1000

Move 1000 steps in the plus direction.

 

P

 

Exit program mode.

 

 

 

 

 

 

 

 

 

 

 

 

Command

 

Function

 

Type

NV Bytes

l

 

Hardware Options

 

Default, Immediate, Program

2

 

 

 

 

 

 

 

 

 

Mnemonic

 

Data 1

 

Data 2

Result

 

 

 

 

 

 

(Name) l (a, d)

 

Option Flags

 

 

None

l (lower case L; Option Flags)

IMPORTANT – DO NOT CHANGE JUMPERS WITH POWER APPLIED

This command configures several options, primarily relating to input/output operating modes and defining external hardware. Several options invert the sense of input signals. If appropriate jumpers or input signal inversion is not matched to the selected option(s) then the system may lock up or motion can be inhibited.

Flags and Numbers

Several commands use “on-off” flags to enable or disable some feature. The data supplied is in decimal ranging between 0 and 255. The corresponding binary bits are called flags. There are 8 flags, each equaling binary values of 1, 2, 4, 8, 16, 32, 64, 128.

4 4

Image 50
Contents Nashua, NH Page Revision Date 07/05/06 Page Advanced Micro SYSTEMS, INC Addenum Introduction Limitations or Exceptions for the DCB-274Features Product OverviewRequired Hardware for Operation SIN-8Out of the Box Quick Start Dual Ammeter Circuit After Sign-onConnect the Motor Serial Interface J2, J3 Advanced Micro SYSTEMS, INC Hardware Connections J1, J4Standard Mode- Sinking Inputs Pin 7 VIO Reference InputInput Ports PLC Mode- Sourcing InputsTypical User Input Circuit Output PortsTypical Output Circuit Encoder Input Option J1Port Encoder Inputs J1 Power Supply and Motor Connection J5Step and Direction Inputs J1 Typical Wiring Diagrams for Step Motors Baud Rate Jumpers B1, B2Environmental SpecificationsElectrical PhysicalPhysical Dimensions RS-232 OverviewRS-232 Hardware RS-422Single axis, RS-232 connection using AMS SIN-7 adapter RS-232 Daisy Chain connectionParty Line Connect Cable SpecificationsRS-422 Party Line Hardware RS-422 Party LineSIN-8, RS-232 to RS-422 converter SIN-8 Serial AdapterRS-422/485 BUS-drop SIN-10, intelligent serial line converter Other Party Line SignalsSIN-10 Intelligent Serial Adapter Serial Communications Overview Party Line ModeDaisy Chain Mode not recommended for more than 1 axis Serial Communications SoftwareEasi Software Serial Interface Using EasiBaud Rate Sign-OnExamine Command Axis Name Assignment Simple Command ExamplesDaisy Chain Start-Up Execute the Program NV Memory ProgrammingVerify the Program Some Rules Party Line and Daisy Chain Line CommandsEdit Program Command Example Party Line StartupAnatomy of Instruction Execution Interrupt Commands Command Cycle ExamplesAdvanced Micro SYSTEMS, INC Serial Interface Advanced Micro SYSTEMS, INC Serial Interface Non-Volatile Memory Details Memory MapDefault Table Turbo Ram@ Soft Stop Command Format DescriptionESC Global Abort Inputs ResetPort Read/Write OutputsProgramming Example Set Jog Speeds Lower case B Fast and Slow DecayClear and Restore NV Memory Divide SpeedsFind Home Normally Open Home SwitchNormally Closed Home Switch Special case Go Step Resolution Initial VelocityRamp Slope Lower case I Restart Special TripJump to Address a, n+1 times Lower case K Trip Output Value Advanced Micro SYSTEMS, INC SMC-27X2 Software Flags and Numbers Loop on PortLower case L Option Flags Make Step and Direction Outputs Flag PLC Mode FlagLimit Polarity Flag Moving Output FlagGentle Limit Flag Move at a Constant VelocityPort 4 Input Flag Program Mode Set OriginIndex Relative to Origin Save Trip PointSet Slew Speed Wait Lower case W Pre-energizeExamine Hold and Run CurrentRead Position Read NV Memory Read Limits, Hardware+ Index in Plus Direction Index in Minus DirectionRead Moving Status \ Write to NV MemorySelective Termination Name AxisParty Line Mode AMS SIN-11 Serial AdapterCommand Summary Advanced Micro SYSTEMS, INC AddendumAscii Character Code Ctrl Char Dec Hex CodeStep Motor Characteristics About Step Motor CurrentMotor Choice Determining the Current ValueAmps and Wire Count and Power Basic 8 Wire MotorWire Motor Application Notes V1.10 Double Speed Characteristics Decay ControlSerial Adapter Summary