ADVANCED MICRO SYSTEMS, INC. | ||||||
|
|
|
|
|
| |
Command | Function |
| Type |
| NV Bytes | |
L | Loop on Port |
| Program |
| 3 | |
|
|
|
|
| ||
Mnemonic | Data 1 | Data 2 | Result | |||
| ||||||
| (Name) L (a, c) |
| Condition | 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
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
4 4