Read / write profile number, command „v“ (56h), Read / write offset, command „u“ (55h), N 142 – Baumer N 142 User Manual

Page 13: Response after reset upon deletion of all profiles, Example 2: write offset, Response in both examples

Advertising
background image

N 142

www.baumer.com

13

4.2.6. Read / write profile number, command „V“ (56h)

This command is for readout the number of the presently active profile respectively for profile alteration.

Example 1: Read active profile (active profile number = 38)

SOH Adr Cmd EOT CRC

Transmission

01h 20h 56h 04h 20h

SOH Adr Cmd Profile no=38 EO

T

CRC

Response

01h 20h 56h 33h

38h 04h 28h

Response after reset upon deletion of all profiles:

SOH Adr Cmd Profile no=FF EO

T

CRC

Response

01h 20h 56h 3Fh

3Fh 04h 16h


Example 2: Transmit new profile (new profile number = 17)

SOH Adr Cmd Profile no=17 EO

T

CRC

Transmission

01h 20h 56h 31h

37h 04h 3E

SOH Adr Cmd Profile no=17 EO

T

CRC

Response

01h 20h 56h 31h

37h 04h 3E


Example 3: Transmit new profile by broadcast to all SPAs (identifier = 99 (83h); new profile number = 17)

SOH Adr Cmd Profile no=17 EO

T

CRC

Transmission

01h 83h 56h 31h

37h 04h 04

Response

Not confirmed

To check whether the new profile has been accepted by SPAs utilize check command „C“ (43h).

4.2.7. Read / write offset, command „U“ (55h)

This command is to read or write the offset that is added to the true current value. First however the function
must be enabled in command bit parameter ‚a’ (61h).

Example 1: Read offset

SOH Adr Cmd EOT CRC

Transmission

01h 20h 55h 04h 26h

Example 2: Write offset

SOH Adr Cmd

Data (offset = –20,00)

EOT CRC

Transmission

01h 20h 55h 2Dh 30h 32h 30h 30h 30h

04h C3h

Response in both examples:

SOH Adr Cmd

Data (offset = –20,00)

EOT CRC

Response

01h 20h 55h 2Dh 30h 32h 30h 30h 30h

04h C3h


Advertising