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

Nand4 - Four-input nand Gate

This function returns the result of ANDing its four inputs and then NOTing the result.

Arguments

IN1% to IN4%

The values to be NANDed together. Only the bottom bit (bit 0) of each input will be NANDed. All other bits in the input will be ignored.

Example

Target/ Language Restrictions

None.

See Also

  • AND4

  • NOR4

  • OR4

  • XOR4

________________________________________________________________________________

Neg - Inverts Input

This function negates the value of its input (integer or floating-point) The function can only be used in QLD and LD/ FB diagrams; it is not available in DPL.

Arguments

IN

The value to be negated.

Return Values

Q

The negated value.

Target/ Language Restrictions

This function can only be used in the LD/ FB or QLD diagram editors.

________________________________________________________________________________

Netreply

This function returns the value of a CTNet read operation (RDNET or RDNETB). The operation also needs to be called after a CTNet write operation (WRNET, WRNETB) to return the CTNet drivers to an idle state in preparation for another read or write request.

Arguments

0

The operation should be passed the value 0. This argument is only included for historical reasons.

Return Values

Q%

The 32-bit signed value from a successful RDNET operation. In the case of RDNETB commands on the SM-Applications module, the values for the parameters are returned in the Results%[] array that was passed into the RDNETB command. The value returned from this function is undefined.

Example

Target/ Language Restrictions

Ony available on CTNet-capable modules - SM-Applications, MD29AN, UD75.

See Also

  • RDNET

  • RDNETB

  • WRNET

  • WRNETB

  • NETSTATUS

________________________________________________________________________________

Netstatus

This function is used to poll for command completion when a Waitcode% value of 0 is specified in a call to a RDNET, WRNET, RDNETB or WRNETB command.

Arguments

0

The operation should be passed the value 0. This argument is only included for historical reasons.

Return Values

Q%

The status of the previous RDNET, RDNETB, WRNET or WRNETB operation. When using a RDNET or RDNETB command with a WaitCode of 0, NETREPLY must be called to return the network to IDLE state even if NETSTATUS returns an error code.

Example

Target/ Language Restrictions

Ony available on CTNet-capable modules - SM-Applications, MD29AN, UD75.

See Also

  • RDNET

  • RDNETB

  • WRNET

  • WRNETB

  • NETREPLY

________________________________________________________________________________

Nor4 - Four-input nor Gate

This function returns the result of ORing its four inputs and then NOTing the result.

Arguments

IN1% to IN4%

The values to be ORed together. Only the bottom bit (bit 0) of each input will be ORed. All other bits in the input will be ignored.

Example

Target/ Language Restrictions

None.

See Also

  • AND4

  • NAND4

  • OR4

  • XOR4

________________________________________________________________________________

OpenReadSmartCard

This function opens a smartcard file for reading. This operation must be called before reading data from a smartcard.

Arguments

FNum%

The ID of the file on the smartcard. See the Unidrive SP User Guide for more details.

Return Values

Status%

The status of the open command.

Size%

The size in bytes of the data in the file on the smartcard.

Example

See SmartCard Example Program for example program.

Target/ Language Restrictions

This function is only available on SM-Applications and SM-Applications Lite.

See Also

  • OpenWriteSmartCard

  • CloseSmartCard

  • ReadSmartCardByte

  • WriteSmartCardByte

  • GetNextSmartCardFile

  • ReadReadOnlyBit

  • WriteReadOnlyBit