SanRex DC AUTO C Type Communication Driver

 

SanRex DC AUTO C Type is driver to communicate with controller of ß² Þä ï³ Ñ¦  ð² í ᶠCorp., Ltd, in Japan.

 

1. Read settings

 

<Figure 1> is read setting example of SanRex DC AUTO C Type communication driver.

<Figure 1> Read setting example of SanRex DC AUTO C Type driver

Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(2), Data Bit(8), Stop Bit(1) respectively, according to device.

Also, you can enter the read delay time after writing(0 ~ 5000 mSec, Default = 500), whether to save communication status by station(0 : Don't care, 1 : Use, Default = 0) and save start address of communication status by station by classifying as comma(,).

 

Reference) Refer to no.4 item for Device number setting of SanRex DC AUTO C Type.

 

SanRex DC AUTO C Type driver's read schedule

Read schedule setting parameters are as follows:

1) STATION : STATION number of device. ( 1 ~ 31 )

2) Read Type : Designate data type to read.

SET2 – Reading setting data as in LO HI byte order,

SET – Reading setting data as in HI LO byte order,

DATA2 – Reading monitoring data as in LO HI byte order,

DATA or Etc – Reading monitoring data as in HI LO byte order,

3) Read Start Address : Don't care. (Fixed to 0)

4) Save Start Address for Communication Server : Save start address of Communication Server.

5) Read Size : Size to read. (Fixed to 19)

 

Read schedule example)

READ,    1,   DATA2,   0,   0,   19,

READ,    1,    SET2,   0,  20,   19,

Memory Save Address

Contents

Range

Remarks

Save Addr + 0

System reservation

Always 0

 

Save Addr + 1

System status

0 ~ 127

Refer to <Table 2>

Save Addr + 2

Error status

0 ~ 15

Refer to <Table 3>

Save Addr + 3

The current value of direct current output

0 ~ 9999

 

Save Addr + 4

The voltage value of direct current output

 

Save Addr + 5

Energized integration electric power value

 

Save Addr + 6

Energized time

 

Save Addr + 7

Entire integration current value

0 ~ 99999999

 

Save Addr + 8

Read data format

0 ~ 58

Refer to <Table 4>

Save Addr + 9

Read memory number

0 ~ 99

 

Save Addr + 10

Pulse ON time

0 ~ 999

 

Save Addr + 11

Pulse OFF time

 

Save Addr + 12

Output setting value 1

0 ~ 9999

 

Save Addr + 13

Output setting value 2

 

Save Addr + 14

Preset value

 

Save Addr + 15

Current value unit

0 ~ 3

 

Save Addr + 16

Voltage value unit

0 ~ 2

 

Save Addr + 17

Rated output current value

1 ~ 9999

 

Save Addr + 18

Rated output voltage value

 

<Table 1> Read contents and save address of DATA type to read

Bit Address

Contents

Status Value

0

Operation status

0 : Direct current output OFF,  

1 : Direct current output ON

1

CV/CC mode

0 : CV mode,

1 : CC mode

2 ~ 3

Operation mode

00 : H-L mode,

01 : CONST mode,

10 : Single phase propagation mode,

11 : Chopper mode

4

Preset count up

0 : Normal,

1 : Count up

5

Entire count up

6

Display conversion status

0 : Display peak value,

1 : Display average value

7

-

 

<Table 2> Contents of system status value by bit

Bit Address

Contents

Status Value

0

Power supply voltage error

0 : Normal,

1 : Error

1

Temp error

2

Output current error

3

Output voltage error

4 ~ 7

-

 

<Table 3> Contents of error status value by bit

Bit Address

Contents

Status Value

0 ~ 1

Read data format

00 : Data during operation,

01 : Simple set data,

10 : Memory designation data,

11 : Invalidity

2

-

 

3 ~ 4

Operation mode

00 : H-L mode,

01 : CONST mode,

10 : Single phase propagation mode,

11 : Chopper mode

5

CV/CC mode

0 : CV mode,

1 : CC mode

6 ~ 7

-

 

<Table 4> Contents of reading data format value by bit
Memory Save Address

Contents

Range

Remarks

Save Addr + 0

Data set mode

0 ~ 255

Refer to <Table 6>

Save Addr + 1

Memory number 1

0 ~ 99

 

Save Addr + 2

Memory number 2

 

Save Addr + 3

Pulse ON time

0 ~ 999

 

Save Addr + 4

Pulse OFF time

 

Save Addr + 5

Output setting value 1

0 ~ 9999

 

Save Addr + 6

Output setting value 2

 

Save Addr + 7

Preset value

 

Save Addr + 8

System control

0 ~ 15

Refer to <Table 7>

Save Addr + 9

Unit, Motion mode

0 ~ 250

Refer to <Table 8>

Save Addr + 10

Initiation weak-current time

0 ~ 999

 

Save Addr + 11

Initiation weak-voltage value(Ratio)

0 ~ 9999( 99 )

 

Save Addr + 12

Initiation weak-current value

0 ~ 9999

 

Save Addr + 13

Soft start time

0 ~ 9990

 

Save Addr + 14

Soft stop time

 

Save Addr + 15

Entire reset value

0 ~ 99999999

 

Save Addr + 16

Detection rate of output error

0 ~ 99

 

Save Addr + 17

Detection rate of excess output

0 ~ 102

 

Save Addr + 18

Detection rate of under output

 

<Table 5> Read contents and save address of SET type to read

Bit Address

Contents

Status Value

0 ~ 1

Data selection mode

00 : Data in operation,

01 : Simple set data,

10 : Memory exclusive designation,

11 : Pattern operation designation

2

Memory control mode

0 : Read,

1 : Data input

3 ~ 4

Operation mode

00 : H-L mode,

01 : CONST mode,

10 : Single phase propagation mode,

11 : Chopper mode

5

CC/CV conversion

0 : CV mode,

1 : CC mode

6

Operation command

0 : Stop,

1 : Start

7

Operation command selection

0 : Invalidity of operation command,

1 : Validity of operation command

<Table 6> Contents of data setting mode by bit

Bit Address

Contents

Status Value

0

Preset count reset

0 : Normal,

1 : Error

1

Entire count reset

2

Panel buzzer OFF

0 : Normal,

1 : Buzzer OFF

3

Confirm entire count up

0 : Normal,

1 : Confirmation complete

4 ~ 7

-

 

<Table 7> Contents of system control value by bit

Bit Address

Contents

Status Value

0 ~ 1

Integration unit of preset count

00 : AS unit,

01 : AM unit,

10 : AH unit,

11 : Invalidity

2 ~ 3

Integration unit of entire count

4

Preset count range

0 : x 1,

1 : x 10

5

Initiation weak-current setting

0 : Calculation of ratio,

1 : Current/Voltage

6

Display conversion setting

0 : Peak value display,

1 : Average value display

7

Single phase propagation cycle

0 : 0.83 ms,

1 : 10 ms

<Table 8> Contents of unit/motion mode by bit

SanRex DC AUTO C Type driver's read value is saved at WORD/DWORD/FLOAT memory as same value(value type is only different).

If you click the icon  in protocol option part at <Figure 1>, you can see the dialog box such as <Figure 2>. You can also set read schedule by using this part.

<Figure 2> SanRex DC AUTO C Type driver's Option dialog box
You can set read schedule by using , , button and listbox of <Figure 2>.

Also, you can set read delay time at 'Write After Delay' area of <Figure 2>, and can set whether to save communication status by STATION at 'Each Station Comm Status Save' area and save start address of communication status by STATION at 'Save Start Pos' area.

<Table 9> is save address and save contents of communication status by STATION, when use Save Communication Status by STATION.

Save Address

Contents

Range

Save start address of communication status by STATION + 0

Read communication success rates of No.0 STATION

0 ~ 100 %

Save start address of communication status by STATION + 1

Count of continual read timeout of No.0 STATION

Count

Save start address of communication status by STATION + 2

Count of continual read bad code of No.0 STATION

Save start address of communication status by STATION + 3

Current read communication status of No.0 STATION

0 bit : Timeout or not, (ON = Timeout)

1 bit : Bad code or not, (ON = Bad code)

2 bit : Timeout for continual 5 times or not,

3 bit : Timeout for continual 10 times or not,

4 bit : Bad code for continual 5 times or not,

5 bit : Bad code for continual 5 times or not,

Save start address of communication status by STATION + 5

Write communication success rates of No.0 STATION

0 ~ 100 %

Save start address of communication status by STATION + 6

Count of continual write timeout of No.0 STATION

Count

Save start address of communication status by STATION + 7

Count of continual write bad code of No.0 STATION

Save start address of communication status by STATION + 8

Current write communication status of No.0 STATION

0 bit : Timeout or not, (ON = Timeout)

1 bit : Bad code or not, (ON = Bad code)

2 bit : Timeout for continual 5 times or not,

3 bit : Timeout for continual 10 times or not,

4 bit : Bad code for continual 5 times or not,

5 bit : Bad code for continual 5 times or not,

Save start address of communication status by STATION + 10

Read communication success rates of No.1 STATION

0 ~ 100 %

Save start address of communication status by STATION + 11

Count of continual read timeout of No.1 STATION

Count

¡¦

¡¦

¡¦

<Table 9> Communication status save address and save contents by STATION
<Figure 3> SanRex DC AUTO C Type driver's Add/Edit dialog box

When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.

 

2. Writing settings

 

You can change setting value and etc of device by using writing settings.

 

Digital/Analog Write

 

Digital write setting parameters are as follows :

1) PORT           Connected PORT number

2) STATION      STATION number of device. ( 1 ~ 31 )

3) Address      INPUT, SET2 Command : Designate memory save address between no.0 and no.18,

                        Etc : Don't care.

4) Extra1          Write command.

START, STOP, READ2, READ, MEM, SET2, SET, OP_MODE, INPUT, ¡¦ (Refer to <Table 10>)

5) Extra2          OP_MODE Command : Set bit mask for outputting data setting mode,

Etc : Don't care. 

Command

Contents

Remarks

START

Operation start command

Address, Not use output value

STOP

Operation stop command

READ2

Command by reading setting value as in LO HI byte order and store at output memory

Address, Not use output value,

It is same command with SET read and it is saved at memory which output read value

READ

Command by reading setting value as in HI LO byte order and store at output memory

Address, Not use output value,

It is same command with SET read and it is saved at memory which output read value

MEM

Change the set memory address

Output value = Memory address between 0 and 99

SET2

Output the setting value as in LO HI byte order after reading setting value as in LO HI byte order and changing no.0 ~ no.18 memory value as set value

Address = 0 ~ 18,

Output value = Set the value in range of <Table 5>

SET

Output the output memory contents which is saved as READ and INPUT command, to device as in LO HI byte order

Address, Not use output value

OP_MODE

Set several bits by bit masking data setting mode

(Refer to each bit of <Table 6>)

Extra2 = Bit mask value for output,

Hi byte : Bit which always be ON,

Lo byte : Bit which to be ON/OFF according to output value,

Output value = 1 (ON), 0 (OFF),

INPUT Etc

Set the output value at no.0 ~ no.18 memory for output,

Save the value at memory only

Address = 0 ~ 18,

Output value = Set the value in range of <Table 5>

<Table 10> Write command and contents

Write example 1)

Station : 1  Address : 0000  Extra1 : START, EXTRA2 : Blank

If you set as above and write analog/digital value, you can operate SanRex DC AUTO C Type of no.1 STATION.

 

Write example 2)

Station : 1  Address : 0000  Extra1 : STOP, EXTRA2 : Blank

If you set as above and write analog/digital value, you can stop SanRex DC AUTO C Type of no.1 STATION.

 

Write example 3)

Station : 1  Address : 0000  Extra1 : MEM, EXTRA2 : Blank

If you set as above and write analog value as 3, you can chage no.3 setting memory of SanRex DC AUTO C Type of no.1 STATION as current memory.

(If you change the memory, setting value(SET read etc) is changed as changed memory value)

 

Write example 4)

Station : 1  Address : 0005  Extra1 : INPUT, EXTRA2 : Blank

If you set as above and write analog value, you can change output setting value 1(refer to <Table 5>) of SanRex DC AUTO C Type of no.1 STATION as designated value.

 

Write example 5)

Station : 1  Address : 0006  Extra1 : Blank, EXTRA2 : Blank

If you set as above and write analog value, you can change output setting value 2(refer to <Table 5>) of SanRex DC AUTO C Type of no.1 STATION as designated value.

 

Write example 6)

Station : 1  Address : 0000  Extra1 : SET, EXTRA2 : Blank

If you set as above and write analog value, you can send the set inside memory value to SanRex DC AUTO C Type of no.1 STATION(output as in HI LO byte order) by using command of READ, INPUT and etc.

 

Write example 7)

Station : 1  Address : 0005  Extra1 : SET2, EXTRA2 : Blank

If you set as above and write analog value, you can change(output as in LO HI byte order) the output setting value 1(refer to <Table 5>) of SanRex DC AUTO C Type of no.1 STATION as designated value(after reading setting value by using READ2 command).

 

Write example 8)

Station : 1  Address : 0000  Extra1 : OP_MODE, EXTRA2 : 33888

If you set as above and write analog value, you can output data setting mode of SanRex DC AUTO C Type of no.1 STATION by bit masking.

In case of output as above, because 33888 is 8460h, 8th and 4th bit are always ON, and set the output value of 7th and 6th bit according to ON/OFF status, and setting the rest of bit by reading current set value.

 

3. Power and communication cable connection

 

Connection for power and communication cable between SanRex DC AUTO and computer is as follows.

 

Power connection

Connect 220 V AC to R, S terminal which is the back of SanRex DC AUTO C Type, such as <Figure 4>.

<Figure 4> Appearance of connecting power and communication cable to SanRex DC AUTO C Type

RS-485 Communication cable connection

Connect RD+( Rx+ ), RD-( Rx- ), SD+( Tx+ ), SD-( Tx- ) line of RS-485 at computer side to SD+, SD-, RD+, RD- terminal's back side of SanRex DC AUTO C Type such as <Figure 5>.

 

Computer side (RS 485)                        SanRex DC AUTO C Type side (SD+, SD-, RD+, RD- terminal)

 

SD+  ------------------------------------------------ RD+

 

SD-  ------------------------------------------------- RD-

 

RD+  ------------------------------------------------ SD+

 

RD-  ------------------------------------------------- SD-

 

<Figure 5> RS-485 connection diagram between SanRex DC AUTO C Type and computer

 

4. STATION setting of device

 

Set the device setting such as Com Baud etc of SanRex DC AUTO C Type by using the front(Refer to <Figure 6>) of control switch, as follows.

1)      Press MEMORY button after pressing CLEAR of control button at the front of device.

2)      Select no.32 by pressing Up/Down button.

3)      Press the INPUT button.

4)      Set STATION number between no.1 and no.31 by pressing Up/Down button.

5)      Confirm the STATION setting by pressing SET button.

6)      Complete the setting by re-pressing MEMORY button.

<Figure 6> Appearance of SanRex DC AUTO C Type device