SPC-300 communication driver is the driver to communicate with SPC-300 / SPC-10 / FARAn PLUS PLC of Samsung in Korea.
SPC-300 input/output memory are arranged automatically by PLC, as in order left to right.
Communication DEVICE format is different, according to switch settings installed at SPC-300 PLC.
Refer to SPC-300 manual about switch settings for communication speed, etc.
SPC-300's read schedule
Read schedule setting parameters are as follows:
1) STATION - STATION value which is set at PLC. ( If you use single PLC, you just set as 255. But if you use several PLC by using 485 communication, you have to designate Station value except 255 for communication.)
2) Card Type - Card type of DI, AI and etc.
3) Address - Memory address.
4) Save Start Address for Communication Server - Saving start address of Communication Server.
5) Read Size - The number of WORD to read.
READ schedule example)
READ, 255, DI, 0, 0, 2,
READ, 255, DI, 2, 2, 2,
READ, 255, DO, 4, 4, 2,
READ, 255, AI, 6, 50, 4,
READ, 255, AI, 8, 54, 4,
Digital input/output card are composed as 1 WORD per 16 channels, and analog input card is composed of 2 WORDs(real value + channel). So, address just increases as 2 WORDs at analog input.
You can read the value at AUTOBASE main program by creating program which changes analog channel for reading analog value at PLC-LADDER program.
Write to direct address of PLC, regardless of SCAN File.
Digital Write
Digital write setting parameters are as follows :
1) PORT : Installed PORT number.
2) STATION : STATION number of SPC-300.(0~191 or 255)
3) ADDRESS : Output address.(Use WORD absolute address)
Write example)
PORT : 0 STATION:1 ADDRESS:0003
If you set as above, you can control(ON/OFF) no.3 bit of no.0 WORD of R part connected with no.1 STATION of SPC-300.
WORD Register |
Absolute Address (Write as decimal) |
WORD Register |
Absolute Address (Write as decimal) |
R0000 R0001 ・ R0126 R0127 |
0 1 ・ 126 127 |
F0000 F0001 ・ F0014 F0015 |
448 449 ・ 462 463 |
L0000 L0001 ・ L0062 L0063 |
128 129 ・ 190 191 |
W0000 W0001 ・ W2559 W2560 |
512 513 ・ 3071 3072 |
M0000 M0001 ・ M0126 M0127 |
192 193 ・ 318 319 |
W2564 |
3583 |
K0000 K0001 ・ K0126 K0127 |
320 321 ・ 446 447 |
|
|
<Designation method for SPC-300 PLC absolute address> |
Analog Write
Analog write setting parameters are as follows :
1) PORT : Installed PORT number.
2) STATION : STATION number of SPC-300. (0~191 or 255)
3) ADDRESS : Output address. (Use WORD absolute address)
Write example)
PORT : 0 STATION: 255 ADDRESS:0192
If you set as above, you can change no.0 WORD value of M part connected with no.255 Station of SPC-300.
Notice : Use absolute address in case of doing writing by using SPC-300 protocol. Area classification of R or M area is classified by address.
For example, if you want to output to M0000, set the address value as 1920. (Refer to manual)
Be careful, because RS-232 communication cable connection is not general.
< SPC-300 RS-232 cable connection > |
Switch settings are as follows. (Notice : Downward direction is ON)
Switch Number | Status | Description |
1 | ON |
Insert terminating resisters 120 ohm. In case of RS-485 Mode, turn ON the CPU module connected with end position of communications line. |
OFF | There isn't terminating resisters |
|
2 | Don't care |
|
3,4 | OFF, ON | RS-232 Mode |
ON, OFF | RS-485 Mode |
|
5,6 | ON, ON | 9600 bps |
OFF, ON | 4800 bps |
|
ON, OFF | 2400 bps |
|
OFF, OFF | 1200 bps |
|
7 | Don't care |
|
8 | Don't care |
|
< SPC-300 switch settings > |