Glofa Ethernet communication driver is the driver to communicate with Glofa PLC of ethernet port of LSIS Co., Ltd. in Korea.
<Figure 1> is read setting example of Glofa Ethernet communication driver.
<Figure 1> Read setting example of Glofa Ethernet communication driver |
Device part of <Figure 1> input Device type(TCP/IP or UDP/IP), IP address of PLC(192.168.1.86), service port of TCP/IP(UDP/IP) protocol (fixed to 2004 for TCP, UDP = 2005 ),respectively, according to setting of PLC.
Also you can input enable of 'Error when PLC is slave' (0 : don't care, 1 : Error, default = 1), use of 'Bit Write word unit address for MW, QW memory type'(0 : don't use, BIT_WORD : use, default = 0), by using option part.
Note) Connectoin number of TCP/IP protocol and IP address of PLC, connection waiting time can set by using by using 'Frame Editor' of LSIS.
When the PLC status is 'slave' and lots of timeout occur, you set to 'Error when PLC is salve' mode = 0 (disable).
But when you using 'Line Duplex', you can set 'Error when PLC is salve' = 1( enable ). So you can transfer to 'Master' PLC'.
Glofa Ethernet communication driver read schedule
Read schedule setting parameters are as follows:
1) STATION – Don't care. ( Fixed to 0 )
2) Read memory type – Memory type.( Refer to <Table 1> )
IW , ID, IX : Word, Dword, 10 Bit unit data read of 'I'(input) memory area,
QW, QD, QX : Word, Dword, 10 Bit unit data read of 'Q'(output) memory area,
MW, MD, MF, MX : Word, Dword, Float, 10 Bit unit data read of 'M'(internal) memory area.
3) Read start address – Read start address in memory.( QX, IX, MX = 10 x address )
4) Save Start Address for Communication Server – saveing start address of Communication Server.
5) Read Size – Word/Dword/Float unit read size.
IW, QW, MW memory type = Word unit read size,
ID, QD, MD memory type = Dword unit read size,
MF memory type = Float(Dword) unit read size,
IX, QX, MX memory type = 10 Bit unit read size. ( 1 = 10 bit )
6) Rack(Base) number – 0 ~ 127 Rack number when I, Q memory.
7) Slot number – 0 ~ 15 Slot number when I, Q memory.
Read schedule example)
READ, 0, QW, 0, 0, 4, 0, 1,
READ, 0, QX, 0, 10, 6, 0, 1,
READ, 0, IW, 0, 20, 4,
READ, 0, IX, 0, 30, 6,
READ, 0, MW, 0, 50, 100,
DWORD, 0, MW, 200, 150, 100,
Note) Rack and Slot number are card position of PLC. ( I, Q memory )
<Table 1> is memory type and data unit of Glofa PLC.
Memory type |
Data unit |
Remarks |
I |
WORD |
Internal area. Analog input. |
IX |
10 bit read |
10 bit unit read. Digital input. |
Q |
WORD |
Output area. Analog output. |
QX |
10 bit read or bit write | 10 bit unit read or bit unit write. Digital output. |
M |
WORD |
Internal memory area. |
MD |
DWORD |
Double word of M memory type. |
MF |
FLOAT |
Float(2 word) of M memory type. |
MF2 |
Float(2 word) Hi-Low order of M memory type. |
|
MX |
10 bit read or bit write |
10 bit read or bit unit write of M memory type. |
<Table 1> Memory type and data unit of Glofa PLC |
If you click the icon in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.
<Figure 2> Example of Glofa Ethernet communication driver¡¯s Option dialogue box |
You can set read schedule by using , , button and listbox of <Figure 2>.
Also you can set enable of error when PLC is slave and use of bit write word unit address for MW, QW memory type at the part of ¡®Error when PLC is Slave', 'Use Bit Write Word Unit Address(MW, QW)' shown in <Figure 2>.
<Figure 3> Example of Glofa Ethernet communication driver¡¯s read schedule Add/Edit dialogue box |
When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.
You can set Glofa PLC by using write settings.
Digital Write
Digital write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION Don't care. ( Fixed to 0 )
3) ADDRESS Write address in memory.
Q, QX memory type : upper 2 digit = Slot number, lower 2 digit = Point number,
MW, QW memory type : upper 3 digit = decimal unit Word address, lower 1 digit = 0 ~ F bit position when you set 'use of bit write word unit address for MW, QW',
etc memory type : write address in memory type.
4) Extra1 Write memory type = Q, QX, MX, etc.
When you set 'use of bit write word unit address for MW, QW : QW, MW memory type.
5) Extra2 Base number when Q, QX memory type.
Write example 1)
PORT : 0 Station : 0, ADDRESS : 0110, EXTRA1 : QX, EXTRA2 : 0
The setting parameter shown above is a control(On/Off) example for 0 Base, 1 Slot, 10 point number of Q memory type.( %QX0.1.10 )
Write example 2)
PORT : 0 Station : 0, ADDRESS : 1207, EXTRA1 : MX, EXTRA2 : 0
The setting parameter shown above is a control(On/Off) example for %MX1207(%MW0075.7).
Analog Write
Analog write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION Don't care. ( Fixed to 0 )
3) ADDRESS Bit, word, dword, float unit write address in memory.
Q, QX memory type : upper 2 digit = Slot number, lower 2 digit = Point number,
etc memory type : write address in memory type.
4) Extra1 Write memory type = Q, QX, M, MX, MF,MF2 etc.
5) Extra2 Base number when Q, QX memory type.
Write example 1)
PORT : 0 Station : 0, ADDRESS : 0001, EXTRA1 : M, EXTRA2 :
The setting parameter shown above is word write example for 0001 word of M memory type.( %MW0001 )
Write example 2)
PORT : 0 Station : 0, ADDRESS : 0010, EXTRA1 : MF, EXTRA2 :
The setting parameter shown above is float write example for 0010 word + 0011 word of M memory type.( %MW0010 )
Please connect Ethernet communication cable to RJ45 connector of Ethernet module such as <Figure 4>.
<Figure 4> Connection example of Ethernet communication cable to Glofa PLC |