Applies To:
  • CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01 3.00

Summary:
How do I set up communications with a MELSEC PLC? 

Solution:
The serial drivers PCxI, MCxI, COMxI or COMx may be used.

Setup the PLC with the appropriate communication parameters i.e. 7 data bits, 19200, no parity, 1 stop bit and format 1 protocol and station number.

I/O Devices form
Name: User supplied unique name
Number: Network wide I/O device number
Address: PLC unit number 0 to 31
Protocol: MELSEC for MELSEC-A
MELSEC1 for MELSEC-AnA
Port name: Use the "Port name" from the Ports form

Standard citect.ini options

[MELSEC]
MaxPending = 2
Block = 24 bytes
Retry = 0
Delay = 5 milliseconds
TimeOut = 2000 milliseconds
PollTime = 0
WatchTime = 30 seconds

Files

  • MELSEC.DLL - The MELSEC driver for windows
  • MELSEC.DBF - The MELSEC-A variable template
  • MELSECA.DBF - The MELSEC-AnA variable template

MELSEC Variables

Digital Low High Purpose
Xx 0 0xfff Input
Yx 0 0xfff Output
Bx 0 0x3ff (0xfff) Link relay
Md 0 2047 (8191) Internal relay
Ld 0 2047 (8191) Latch relay
Fd 0 255 (2047) Annunciator
Md 9008 9255 Special relay
TSd 0 255 (2047) Timer (Contact)
TCd 0 255 (2047) Timer (coil)
CSd 0 255 (1023) Counter (contact)
CCd 0 255 (1023) Counter (coil)
Integer/Long/BCD/LongBCD/String
Wx 0 0x3ff (0xfff) Link register
TNd 0 255 (2047) Timer (present value)
CNd 0 255 (1023) Counter (present value)
Dd 0 1023 (6143) Data register
Rd 0 8191 File register
Dd 9000 9255 Special register
Where x is the address in hexadecimal
d is the address in decimal
number in bracket are the high limit for MELSEC-AnA PLC
 

Keywords:
 

Attachments