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

ResetCanTimer

ResetCANTimer resets the CAN timestamp timer that is returned with GETCAN.

Arguments

Trig%

Specifies whether the timestamp is to be reset. The values are different depending on whether the function is called on a Unidrive SP or a UD77-CAN option.

For UD77-CAN:

Value

Meaning

0

Do not reset.

1

Reset CAN timer.

For SM-Applications, Trig% has the format SA, where A has the same meanings as UD77-CAN and S specifies the slot (1, 2 or 3) containing the SM-CAN option to be reset. If S is 0, the SM-CAN option in the lowest numbered slot will have its CAN timer reset.

Return Values

Q%

Value

Meaning

0

Operation failed.

1

Operation succeeded.

Target/ Language Restrictions

Only available on SM-Applications, SM-Applications Lite and UD77-CAN.

See Also

  • CANConfigEvent

  • CANGetNodeAddr

  • CANReady

  • CANSetup

  • CANStatus

  • CANStatusAll

  • EnableCANTrips

  • GETCAN

  • PUTCAN

________________________________________________________________________________

Rs/sr : Event Memory Latches

Event memory latches which latch an active state when an event occurs (e.g. a variable reaches a maximum).

Theses latches are simple R-S and S-R bistables.

Arguments

Reset%

Reset the latch if non-zero.

Set%

Set the output active (1) if non-zero.

Return Values

Q%

The latched value.

Example

Target/ Language Restrictions

None.

See Also

  • TRL

________________________________________________________________________________

RtuReadRegs

Modbus-RTU master command to read holding registers (Function Code 03).

Arguments

SlaveAddress% - 0 to 247

Address of the Slave to read the registers from.

Timeout%

Time, in milliseconds, to wait for a reply.

StartRegister%

The first register to be read.

NumRegs%

Number of registers, from the first register, to read.

Return Values The status of the command.

Example

Target/ Language Restrictions

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

See Also

  • RTUReadParas

  • RTUReadInputRegs

  • RTUPresetRegs

  • RTUPresetParas

  • RTUMasterReply

  • RTUMasterStatus

________________________________________________________________________________

RtuReadParas

Modbus-RTU master command to read holding registers (Function Code 03) using parameter format.

Arguments

SlaveAddress% - 0 to 247

Address of the Slave to read the registers from.

Timeout%

Time, in milliseconds, to wait for a reply.

StartMnu%

The menu number of the first register to be read.

StartPar%

The parameter number of the first register to be read.

NumRegs%

Number of parameters, from the first parameter, to read.

AccessMode%

Value

Meaning

0

Read 16-bit parameter(s)

1

Read 32-bit parameter(s)

Return Values

Status%

The status of the command.

Value

Meaning

0

Request accepted and is currently in progress.

1

Busy. A request is currently in progress.

2

Invalid destination address.

3

Too much data to transmit. Reduce NumRegs%.

Example

Target/ Language Restrictions

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

See Also

  • RTUReadRegs

  • RTUReadInputRegs

  • RTUPresetRegs

  • RTUPresetParas

  • RTUMasterReply

  • RTUMasterStatus

________________________________________________________________________________