VISION120 communication driver

 

VISION120 (Unitornics) is the driver to communicate with  VISION120 PLC of Unitronics Co. in Israel.

1. Read settings

 

 

<Figure 1> is read setting example of VISION120 (Unitornics) communication driver.

 
<Figure 1> Read setting example of VISION120 (Unitornics) communication driver
 Device settings of <Figure 1> are input, Com Port(COM1), Com Baud(57600), Parity Bit(0), Data Bit(8), Stop Bit(1) which are set at device.

Also, you can set followed by device and communication speed(1 ~ 10) to communicate actually, RS-232C Comm Break time(mSec unit, Default : 500 mSec) during initialization by using the option part of VISION120 communication driver.

 

VISION120 PLC read schedule

READ Station Device Read Address Buf Address Read Size
READ, 1, MB, 0, 0, 5,
READ, 1, MI, 0, 10, 50,
READ, 1, MI, 100, 60, 250,
READ, 1, SI, 0, 310, 30,
DWORD, 1, DW, 0, 0, 80,
DWORD, 1, SDW, 50, 100, 10,

1) Station : Station(ID) number of Vision 120 PLC. (0 ~ 255)

2) Device Type : Designate data type to read. (Refer to <Table 1>)

I, O, MB, MI, ML, DW, SB, SI, SL, SDW, TB, TC, TS, CB, CC, CS, ID, RTC etc.

3) Read Start Address : Start address to read.

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

5) Read Size : Data size to read.

I, O, MB, SB, TB, CB – Number of 10 Bit unit (1 ~ 25),  (Example : 2 = 20 Bit read, 10 = 100 Bit read)

MI, SI – Number of WORD unit ( 1 ~ 255 WORD ),

ML, DW, SL, SDW, TC, TS, CC, CS – Number of DWORD ( LONG ) unit ( 1 ~ 255 WORD ),

ID, RTC – Fixed to always 1 in number.

Device Type Contents Unit Write Remarks
I Input Bit x  
O Output o  
MB Memory Bit  
MI Memory Integer Word  
ML Memory Long Long  
DW Memory Dword Dword  
SB System Bit Bit  
SI System Integer Word  
SL System Long Long  
SDW System Dword Dword  
TB Timer Scan Bit Bit x  
TC Timer Current DWORD  
TS Timer Preset    
CB Counter Scan Bit Bit  
CC Counter Current DWORD  
CS Counter Preset    
ID Unit ID BYTE ( 0 ~ 255 ) o  
RTC Current Time 7 Byte Year, Month, Day, Day of the week(1 ~ 7),
Hour, Minute, Second
<Table 1> Contents and Device Type of Vision 120 PLC

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

<Figure 2> Example of VISION120 driver Option dialog box

You can set read schedule by using , , button and listbox of <Figure 2>.

Set Vision 120 and communication speed to communicate (Select among the 110, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600) at 'Baud Rate' part of <Figure 2>,

and set RS-232C Comm Break time during initialization at 'Init Comm Break Time' part.

 
<Figure 3> Example of VISION120 driver's read schedule 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. Write settings

Write to direct address of controller, regardless of SCAN File.

 

Digital Write

You can set status value(reset etc) of device or control Relay etc.

Digital write and analog write have the same setting parameters except output value.

 

Write example 1)

Station : 1  Address : 0012  Extra1 : O, EXTRA2 : Blank

If you set as above and output the digital value, you can control value(ON/OFF) for 'O' memory, no.12 address of VISION120 which connected to no.1 station.

 

Write example 2)

Station : 1  Address : 0035  Extra1 : MB, EXTRA2 : Blank

If you set as above and output the digital value, you can control value(ON/OFF) for 'MB' memory, no.35 address of VISION120 which connected to no.1 station.

 

Analog Write

Analog output is writing BYTE/WORD/DWORD/FLOAT value to device(PLC).

 

Analog write setting parameters are as follows :

1) PORT : Connected Port number.

2) STATION : Device Station( ID ) number. ( 0 ~ 255 )

3) Address : Output address. Output address of decimal unit. ( 0 ~  )

              When data type is RTC – Top 2 digit : Minute, Sub 2 digit : Second setting value.

4) Extra1 : Data type to want to output. (Only writable area of <Table 1>)

O – Write data to Output area,

MB – Write data to Memory Bit area,

MI – Write data to Memory Integer area,

ML – Write data to Memory Long area,

DW – Write data to Memory Dword area,

SI – Write data to System Integer area,

SL – Write data to System Long area,

SDW – Write data to System Dword area,

ID – Station(ID) write of PLC,

RTC – Write current time(RTC) of PLC, (Refer to <Table 2>)

RUN – PLC Run output command,

STOP – PLC Stop output command,

INIT – PLC Memory Init and Reset output command,

RESET – PLC Reset output command,

BOOT – PLC¿¡ switch to Boot Strap output command.

5) Extra2 : When data type is RTC – Top 2 digit : Day, Sub 2 digit : Hour setting value,

Etc - Don't care.

Setting parameter

Contents

Remarks

Address

Decimal top 2 digit : Minute, Sub 2 digit : Second

Value between 0 and 59

Ex) 0130 (1 minute 30 seconds), 5959 (59 minute 59 seconds)

Extra2

Decimal top 2 digit : Day, Sub 2 digit : Hour

Value between 1 and 31 day, between 0 and 23 hour

Ex) 1000 (10 day 0 hour), 3123 (31 day 23 hour )

Output value

Decimal top 2 digit : Year, Sub 2 digit : Month

Value between 0 and 99 year, between 1 and 12 month

Ex) 0305 (2003 year May), 1012 (2010 year December)

<Table 2> Setting parameter and contents of RTC output


Write example 1)

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

If you set as above and output the analog value, you can change MI memory value of no.0 address for VISION120 equipment which is no.1 Station.

 

Write example 2)

Station : 1  Address : 0050  Extra1 : ML, EXTRA2 : Blank

If you set as above and output the analog value, you can change ML memory value of no.0050 address for VISION120 equipment which is no.1 Station.

 

Write example 3)

Station : 1  Address : 1020  Extra1 : RTC, EXTRA2 : 2214

If you set as above and output the analog value as 0302, you can change current time of VISION120 equipment which is no.1 Station, as 14:10:20 February 22th 2003.

 

3. Power of VISION120 PLC and communication cable connection

Connect basic power of VISION120 PLC with communication cable, as follows.

<Figure 4> Appearance of VISION120 PLC

Basic power connection

Connect 12/24 VDC to power supply at upper side terminal block such as <Figure 5>.

<Figure 5> Upper side terminal block of VISION120 PLC
 

Communication cable connection

Connect 4-wire cable to Port1 RJ11 terminal(impossible to communicate with Port2) of <Figure 7> as cross, and connect to MJ10-22-CS25 RJ11 terminal(Refer to <Figure 8>) which is offered by Unitronics. (Refer to VISION120 manual for detailed wiring)

VISION120 side (RJ11)                         MJ10-22-CS25 (RJ11) of computer side

No.1 line --------------------------------------- No.4 line

No.2 line --------------------------------------- No.3 line

No.3 line --------------------------------------- No.2 line

No.4 line --------------------------------------- No.1 line

<Figure 6> Connection method of communication cable for VISION120 PLC

 
<Figure 7> Left communication port of VISION120 PLC

 
<Figure 8> MJ10-22-CS25