VISION MODBUS is the driver to communicate to modbus protocol by VISION PLC of Unitronics Co., in Israel.
<Figure 1> is read setting example of VISION MODBUS.
<Figure 1> Read setting example of VISION MODBUS |
Device setting of <Figure 1> input Connection type(TCP/IP), IP address of PLC(192.168.192.10), TCP service port(502) respectively.
Also, you can set whether to use MODBUS IP protocol (1 = MODBUS IP protocol, 0 = Serial MODBUS protocol), and delay time after-write at Option part, by separating as Comma(,).
Read schedule example
READ | Station | Device Type | Read start address | Save start address | Read size |
READ, | 255, | MB, | 0, | 0, | 16, |
READ, | 255, | MI, | 0, | 20, | 16, |
DWORD, | 255, | ML, | 0, | 0, | 16, |
DWORD, | 255, | DW, | 0, | 20, | 16, |
FLOAT, | 255, | MF, | 10, | 0, | 10, |
1) Station : Network/Station number(ID) for Vision OPLC. (0 ~ 255)
MODBUS IP protocol – Network number (Default = 255 )
2) Data Type : Designate data type to read. (Refer to <Table 1>)
MB, SB, I, O, TB, CB, MI, SI, ML, SL, DW, SDW, TS, TC, CS, CC
3) Read Start Address : Start address to read.
4) Save Start Address for Communication Server : Saving start address of Communication Server.
5) Read size : Size to read.
MB, SB, I, O, TB, CB – Number of 16 Bit unit (1 ~ 123 WORD), (Example : 2 = 32 Bit read, 10 = 160 Bit read)
MI, SI, CS, CC – Number of WORD unit, (1 ~ 123 WORD)
ML, SL, DW, SDW, TS, TC, CS, CC – Number of DWORD (LONG) unit, (1 ~ 61 DWORD)
MF – Number of FLOAT unit. ( 1 ~ 61 FLOAT )
Memory Type |
Contents | Unit | Write |
I |
Input |
Bit |
Impossible |
O |
Output |
Possible |
|
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 |
Impossible |
TC |
Timer Current |
DWORD |
|
TS |
Timer Preset |
|
|
CB |
Counter Scan Bit |
Bit |
|
CC |
Counter Current |
DWORD |
|
CS |
Counter Preset |
|
|
<Table 1> Memory Type and Contents of VISION MODBUS |
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 VISION MODBUS driver's Option dialog box |
You can set read schedule by using , , button and listbox of <Figure 2>.
Also, you can set whether to use MODBUS IP protocol(Check = Use MODBUS IP protocol) at 'Use Modbus IP Protocol' part of <Figure 2>.
<Figure 3> Example of VISION MODBUS 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.
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 : 255 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 VISION equipment of no.255 Network ID(Not station).
Write example 2)
Station : 255 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 VISION equipment of no.255 Network ID(Not 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. (0 ~ 255)
2) STATION : Network/Station number(ID) of Vision OPLC. (0 ~ 255)
MODBUS IP protocol – Network number (Default = 255 )
3) Address : Output address. Output address of decimal unit. ( 0 ~ )
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.
5) Extra2 : Don't care.
Write example 1)
Station : 255 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 VISION equipment of no.255 Network ID(Not station).
Write example 2)
Station : 255 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 VISION equipment of no.255 Network ID(Not station).
Write example 3)
Station : 255 Address : 0012 Extra1 : MF, EXTRA2 : Blank
If you set as above and output the analog value, you can change MF memory value of no.0012 address for VISION equipment of no.255 Network ID(Not station).
Basic power and communication cable of VISION MODBUS are connected, as follows.
<Figure 4> Appearance of VISION 230 |
Basic power connection
Connect 12/24 VDC to power input section of <Figure 5>.
<Figure 5> Left terminal block of VISION MODBUS |
Ethernet communication cable connection
Connect UTP Ethernet communication cable to Port1 RJ45 terminal of <Figure 5>.
You have to set as follows, for doing MODBUS IP communication by using VISION equipment.
1) Make TCP/IP (or UDP/IP) Slave such as <Figure 6> by executing VisiLogic program. (Refer to 'Help|Example' item of VisiLogic about how to make module)
2) <Figure 7> is shown by double clicking 'ETHERNET CARD INIT' part of <Figure 6>.
3) Input IP address, etc at dialog box of <Figure 7>.
4) Input Service port address, Network ID etc by selecting area for 'Socket 2', 'Network ID 255', etc of <Figure 6>.
<Figure 6> Example of making TCP/IP communication module at VisiLogic program |
<Figure 7> Setting dialog box of IP address for Ethernet communication |