background image

 

 

11

‘A’ ‘0’ ‘D’ ‘D’ 

CR ‘0’ CR CR 

End character 

LF 

LRC Checksum

‘3’ 

End character 

LF 

End character 

LF 

  

 

CR   

   

 

 

 

 

End character 

LF  

    

*CR = 10H, LF = 0AH 
LRC Checksum = 2’s complement of (A Function code + Hi byte of start a … ) 
For example: 01H + 03H + 10+ 00H + 00H + 02H = 16H, and LRC = 2’s complement of 16H = EAH 

RTU Mode 

Register Read (03H) 

Response 

Register Write (06H) 

Response 

Address 01H Address 01H Address 01H Address 01H

Function code 

03H 

Function code 

03H 

Function code 

06H 

Function code 

06H

10H 10H 

10H

Start address of 

read data 

00H 

Data length (byte)

04H 

Data address 

01H 

Data address 

01H

00H 01H  03H 03H

Word length) 

02H 

Address 1000H 

Data content 

F4H

Data content 

20H 

Data content 

20H

CRC Low byte 

C0H 

03H 

CRC Low byte 

DDH

CRC Low byte 

DDH

CRC high byte 

CBH 

Address 1001H 

Data content 

20H 

CRC high byte 

E2H

CRC high byte 

E2H

  

 

CRC 

Low 

byte 

BBH

 

   

 

 

 

 

CRC high byte 

15H 

 

 

 

 

CRC Program Example: 

              unsigned int reg_crc = 0xffff; 

i = 0;    while (length--) 

 

 {  reg_crc ^= RTUData[i];    i ++;   

 

for (j = 0; j < 8; j++) 

 

{    if (reg_crc & 0x01)        reg_crc = (reg_crc >> 1) ^ 0xA001; 

    else                 reg_crc = reg_crc >> 1; 

            }    } 

return(reg_crc); 
 

4. 

Address & Data Register Content 

Address 

Default 

T

imer 

Cou

nter 

Ta

chom

e

te

Content 

Remark 

1000H 

V PV1 (Low byte) 

 

1001H 

V PV1 (High byte) 

 

1002H 0  V  

PV2 

(Low 

byte) 

1003H 0  V  

PV2 

(High 

byte) 

Available on batch, total, dual counter and mixed mode 

1004H 

V SV1 (Low byte) 

 

1005H 

V SV1 (High byte) 

Read/write low byte (1004H) in advance is required. 

1006H 

V SV2 (Low byte) 

 

1007H 

V SV2 (High byte) 

Read/write low byte (1006H) in advance is required. 

1008H 

V Select function 

0: Timer; 1: Counter; 2: Tachometer; 3: Mixed function 

1009H 

 

  Counter function 

0: 1-stage; 1: 2-stage; 2: Batch; 3: Total; 4: Dual 

100AH 

V Input type 

0: PNP; 1: NPN 

100BH 

 

  Timer function 

0: Counting up; 1:Counting down 

100CH 

 

  Timer output mode 

See Table 1 ”Timer Output Mode” 

100DH 

 

  Counting unit for timer 

See Table 1 ”Timer Display” 

100EH 

 

  Input mode of counter 

0: Counting up; 1: Counting down; 2: Command; 3: 
Individual; 4: Quadrature 

100FH 0  V  

Dual 

output 

counting mode 0: Sum; 1: Subtract 

1010H 

 

  Counter output mode 

See Table 1 “Counter Output Mode” 

1011H 

 

V Counting speed 

0: 1Hz; 1: 30Hz; 2: 200Hz; 3: 1kHz; 4: 5kHz; 5: 10kHz 

1012H 

  Pulse width of output 1 

Range: 0 ~ 9,999; Unit: 10ms, 0: Sustained mode 

VARITEL INGENIERIA ELECTRONICA S.A.

[email protected] - www.varitel.com - Tel. (54) 11-4243-1171 / Fax: (54) 11-4292-7545

Manuel Baliña 456, Lomas de Zamora (B1832CCJ) Buenos Aires, Argentina. 

Содержание CTA4000A Series

Страница 1: ...ected to proper terminals 6 Keep away from high voltage and high frequency environment during installation in case of interference 7 Prevent using the device in premises which contain Dust or corrosiv...

Страница 2: ...operation mode for more than 3 seconds to enter configuration mode Press MODE once to switch among parameters To return to operation mode press MODE for more than 3 seconds Ordering Information CTA 2...

Страница 3: ...data or not while switching off power MODE Setup pre scale value MODE Setup the decimal point MODE Setup the pulse width of output 2 MODE Tachometer Select a function MODE Setup output mode of Tachome...

Страница 4: ...from 0 to 99 99 secs 0 Hold output Setup output modes Setup the counting unit of the timer sec 0 01 9 999 99 A unit 10ms Max counting 9 999 99 secs sec 0 1 99 999 9 A unit 0 1sec Max counting 99 999 9...

Страница 5: ...l Pause signal Clear signal Output signal Up Down SV SV Repeat Cycle 0 0 timer output set as 0 Power signal Start signal Pause signal Clear signal Output signal Up Down SV SV Repeat Cycle t t t timer...

Страница 6: ...s include 1 stage counting 2 stage counting batch counting total counting and dual counting 1 stage Only 1 SV is allowed See output modes of counter 2 stage 2 SVs 2 PVs are allowed See output modes of...

Страница 7: ...A n n 1 n 2 n 3 n 4 n 5 H L H L CP1 CP2 0 Present Value CP1 Counter input prohibited CP2 Counter input Note has to be larger than width of min Input signal A Command counting up down UD_A Individual c...

Страница 8: ...t the counting stops Recounting starts and Output 2 pulse executes after reset signal is over S When PV SV1 Output 1 is enabled When PV SV2 Output 2 is enabled T When PV SV1 Output 1 is enabled When P...

Страница 9: ...OUT2 OUT1 Output mode setting Input mode Up Down Up Down A B C K P Q A T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T VARITEL INGENIERIA ELECTRONICA S A info varitel c...

Страница 10: ...RTU mode Function codes 03H register read and 06H single register write Function code 03H can read maximum 8 words at a time ASCII Mode Register Read 03H Response Register Write 06H Response Start ch...

Страница 11: ...ter Content Remark 1000H 0 V V V PV1 Low byte 1001H 0 V V V PV1 High byte 1002H 0 V PV2 Low byte 1003H 0 V PV2 High byte Available on batch total dual counter and mixed mode 1004H 0 V V V SV1 Low byt...

Страница 12: ...Tachometer Function Measuring Rotation speed Measuring pulse width and determining current frequency Output methods Lo Lo Lo Hi Hi Lo Hi Hi OUT2 set value Measurement value OUT1 set value OUT1 OUT2 OU...

Страница 13: ...eed ON 10KCPS OFF 30CPS Unit of Timer See Table 2 Counting speed ON 10kHz OFF 30Hz 4 Output mode of counter See Table 3 Output mode of Timer See Table 3 Output mode of Tachometer See Table 3 3 Output...

Страница 14: ...D series Multi function input pin Counter Timer Tachometer Timer Counter CP1 CP1 CP1 CP2 Gate Gate Reset1 Reset1 Reset1 Reset1 Reset2 Start Start VARITEL INGENIERIA ELECTRONICA S A info varitel com ww...

Страница 15: ...he top and bottom of the controller and push the mounting bracket forward until the bracket stops at panel wall 3 Insert and tighten screws on bracket to secure the controller in place VARITEL INGENIE...

Отзывы: