PWM1000. IFM CR0403

Add to My manuals
231 Pages

advertisement

PWM1000. IFM CR0403 | Manualzz

BasicController CR0403

PWM1000

Unit type = function block (FB)

Unit is contained in the library ifm_CR0403_Vxxyyzz.LIB

Symbol in CODESYS:

35763

>

Description

35328

PWM1000 handles the initialisation and parameter setting of the PWM outputs.

The FB enables a simple use of the PWM FB in the device. For each channel an own PWM frequency, the mark-to-space ratio and the dither can be set.

>

The PWM frequency FREQUENCY can be directly indicated in [Hz] and the mark-to-space ratio

VALUE in steps of 1 ‰.

Parameters of the inputs

Parameter

ENABLE

CHANNEL

FREQUENCY

VALUE

DITHER_FREQUENCY

DITHER_VALUE

Data type

BOOL

BYTE

WORD

WORD

WORD

WORD

36019

Description

TRUE: execute this function element

FALSE: unit is not executed

> initiated processes continue in the background

> FB outputs are not updated

Number of the PWM output channel

0...11 for the outputs OUT0...OUT11

PWM frequency in [Hz] allowed = 20...250 = 0x0014...0x00FA

PWM value (mark-to-space ratio) in [‰] allowed = 0...1 000 = 0x0000...0x03E8

Values > 1 000 are regarded as = 1 000 dither frequency in [Hz] value range = 0...FREQUENCY / 2

FREQUENCY / DITHER_FREQUENCY must be even-numbered!

The FB increases all other values to the next matching value. peak-to-peak value of the dither in [‰] permissible values = 0...1 000 = 0000...03E8

181

>

BasicController CR0403

Parameters of the outputs

Parameter

CURRENT

RESULT

Data type

WORD

BYTE

Description only available for current controlable outputs: current output current in [mA] feedback of the function block

(possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

3

128

130

131

0

1

2

133

134

03

80

82

83

00

01

02

85

86

FB is inactive

FB execution completed without error – data is valid function block is active (action not yet completed) function block is active

– valid values not yet available undervoltage on VBBx channel setting is invalid value for VALUE is invalid value for FREQUENCY is invalid dither setting is invalid

35937

182

BasicController CR0403

5.2.7 Function elements: system

Content

FLASH_INFO .......................................................................................................................................184

FLASH_READ ......................................................................................................................................185

GET_APP_INFO ..................................................................................................................................186

GET_HW_INFO ....................................................................................................................................187

GET_IDENTITY ....................................................................................................................................188

GET_SW_INFO ....................................................................................................................................189

GET_SW_VERSION ............................................................................................................................190

MEM_ERROR ......................................................................................................................................191

MEMCPY ..............................................................................................................................................192

OHC ......................................................................................................................................................194

SET_IDENTITY ....................................................................................................................................196

SET_LED ..............................................................................................................................................197

SET_PASSWORD ................................................................................................................................199

TIMER_READ_US ...............................................................................................................................200

35718

Here we show you ifm functions that enable you to

• manage memory contents

• read information from software and hardware

• set or read various data and parameters

183

advertisement

Related manuals

Download PDF

advertisement

Table of contents