Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
SYPT PRO User Guide / SYPT PRO User Guide.doc
Скачиваний:
244
Добавлен:
03.03.2016
Размер:
17.32 Mб
Скачать

ReadReadOnlyBit

This command allows the user to read the status of the read only bit, which is used to protect the contents of a smartcard.

Return Values

Status%

The status of the operation.

Value

Meaning

0

OK

3

Communications Failure with the smartcard.

Data%

The read-only bit.

Value

Meaning

1

Read-only

not 1

Read-write

Example

See SmartCard Example Program for example program.

Target/ Language Restrictions

Only available on SM-Applications and SM-Applications Lite.

See Also

  • OpenReadSmartCard

  • OpenWriteSmartCard

  • CloseSmartCard

  • ReadSmartCardByte

  • WriteSmartCardByte

  • GetNextSmartCardFile

  • WriteReadOnlyBit

________________________________________________________________________________

ReadSmartCardByte

This command reads data from a smartcard file that has been opened using the OpenReadSmartCard operation.

Data%

The data read from the smartcard.

Example

See SmartCard Example Program for example program.

Target/ Language Restrictions

Only available on SM-Applications and SM-Applications Lite.

See Also

  • OpenReadSmartCard

  • OpenWriteSmartCard

  • CloseSmartCard

  • WriteSmartCardByte

  • GetNextSmartCardFile

  • ReadReadOnlyBit

  • WriteReadOnlyBit

________________________________________________________________________________

Reg - Registration Block

This function block can be used to return the position of the axis at the time a registration event occurs, it can also be used to place a window around where the registration position is expected to be, so that it will reject spurious registration marks outside the window position. It can also be used to give a position that rolls over in a predictable way.

The function block is designed to allow it to use the features offered by the UD70 for position capture, though by using pointers to point to the parameters it should be compatible with future products. Mentor does not have any position capture features and so can only be used to do slow position capture using standard digital inputs.

Arguments

Ctrl%

Bitmapped control word.

Bit

Meaning

0

Windowing enable

1

Zero position

2

Preset position to Pset%

3

Set position on mark to WinPs%

RawPs%

Position register.

Wrap%

Position where the axis will wrap around to zero.

Tol%

Window tolerance.

WinPs%

Window position.

Pset%

Position preset.

CapPs%

Capture position register.

InReg%

Mark detected input register. Works with Mask% which determines the bit to use in this register.

Mask%

Mask bit for InReg%

Return Values

Q%

Registration seen flag.

Position Roll Over

The Raw position data increases so that it uses the full +/- 31 bits of resolution, in many cases we know the length of the product we want to make and so here we use a rollover to force the position to stay within the range zero to the wrap around position.

Detecting a Mark

When a registration mark is detected then the position at which the mark was seen is recorded and the position can be selected so that it is set to a known position, in this case zero.

Windowing

When windowing is enabled all marks that are outside of the window are ignored, and the marks inside the window are used. The window tolerance sets the size of the window. If the preset on mark bit is selected then the output position is set so that at the instant the registration mark was detected the position is set to the preset, in this case zero, this removes any small recursive errors that could become significant over a long period.

Example

Target/ Language Restrictions

To use this block on SM-Applications a "wrapper" needs to be written to simulate the UD70 Marker Pulse register, as the marker pulse on the SM-Applications works in a different way.

See Also

  • HOME1

  • HOME2

________________________________________________________________________________

REINIT

Set up parameters are only read by the applications module at power-up or reset. If changes are made to the set-up parameters, REINIT can be used to force the application module to re-read them so changes can take effect.

This command will not cause a reset. The program execution will continue from the next statement as normal.

Example

Target/ Language Restrictions

  • Parameter #17.12 on UD70 (position controller set-up) is excluded from the REINIT.

  • On SM-Applications, if REINIT is used in a task other than Initial then this will have no effect on parameters #81.11 and #81.12.

________________________________________________________________________________