Jump to content
sachinda

GEN Protocol with Unitronics PLC RS485 communication

Recommended Posts

Hi,

I am trying to interface GEN Protocol which is in the TDK Lambda Z+ Power Supply. I need to build the communication with the RS485 com port in the USP-104-B10 model. I wrote the ladder program and tried to read the address in the power supply and tried to read voltage and current. But there was error messages coming. 

Please anyone who could give any feedback for this...?

  • Like 1

Share this post


Link to post
Share on other sites

We can not troubleshoot in the dark.

1.  Upload your program.

2.  Post a link to a manual for the GEN protocol.

3.  List the exact error messages you are getting.

Joe T.

Share this post


Link to post
Share on other sites

Dear Joe,

Thank you for the reply. Herewith I will upload the details. I tried at first to read the address and voltage from the power supply.

Z+ 60-7 power supply data sheet.

Protocol details under page 86

https://uk.tdk-lambda.com/KB/Zplus-User-Manual-low-voltage-models-10V-to-100V.pdf

 

error messages were,

Some unknown characteristics like"??", "*" C01 : ( C01 is mentioned as illegal command or quarry in the data sheet )

TEST1.ulpr

Share this post


Link to post
Share on other sites

Dear Joe,

I did the communication with Hyper terminal and Termite with the PLC  RS 485 terminal. when I input from the PLC messages can received to the Termite. But unable to transmit to the PLC.

Could you please guide me for this.

 

Test4.ulpr

Share this post


Link to post
Share on other sites

@sachinda,

I happen to be trying to interface with a TDK Lambda Z+ instrument as well right now. After a week I figured something out. This is for a z100-8-u model. I wanted to get SCPI to work, but I found a way to get the GEN protocol to work, which is what you need.

Download the USB driver for the Z+ unit here, Z+ USB Drivers Download Zip. or find it on the webpage,  https://uk.tdk-lambda.com/technical-centre/software-tools.aspx 

plug in a USB cable from your computer to the unit. 

Setup the unit for Interface-USB, BAUD-9600, LANG-GEN, ADR-6

Download Putty

Start a default Putty session and change the following parameters.

Set connection type to serial line to COM("""this number will be based on your computer""")

Go to terminal and check, "implicit CR in every LF", and "Implicit LF in every CR". Also, under line discipline options, make sure local echo is "Force on"

Under connection>serial>Baud-9600, data bit-8, stop bit-1, parity-none,flow control-none.

Start the session

It should be a blank screen, but it shouldn't exit out. 

Type the following to get started:

ADR 06 

press enter

"OK" should be returned. 

 

Share this post


Link to post
Share on other sites

So let's start at the beginning of the receive logic and work through each block.

In this network

image.png.81c589d481046053d74a1f00ce191a21.png

You're triggering the receive with the Last Byte Count = 0.  Why?  

Have you tried hanging the COM Rx block right on the power rail?

If so, does anything show up in the Rx_Buffer tag at all?

Joe T.

 

Share this post


Link to post
Share on other sites

Hi dg450

I think you mentioned the COM test with the power supply and the PC. Here I attached the picture in the manual. I test the serial communication according to the guidance in the picture. The "OK" message came. and also able to read the voltage in the hyper terminal and also can set voltage to the power supply using the communication between power supply and PC. baud rate adjusted, set LANG to GEN etc.

com_test1.JPG

Share this post


Link to post
Share on other sites
2 hours ago, sachinda said:

Hi dg450

I think you mentioned the COM test with the power supply and the PC. Here I attached the picture in the manual. I test the serial communication according to the guidance in the picture. The "OK" message came. and also able to read the voltage in the hyper terminal and also can set voltage to the power supply using the communication between power supply and PC. baud rate adjusted, set LANG to GEN etc.

com_test1.JPG

@sachinda, that is correct. The main difference was that I used PuTTY.  I re-read your post and noticed you need RS485 communication.  I misread that!  I tried to connect using RS485 using a usb to RS-485 cable, but I am unable to communicate with the device. However, my putty session doesn't timeout. It makes me think one of my settings is off...

Share this post


Link to post
Share on other sites

Hi Joe,

I tried the last bytes waiting in buffer [0-3]. In my post TEST1 program could see this.

'hanging the COM Rx block right on the power rail' could you please tell me what this is mean? ( I tried  COM Rx separately having in the program but it did not work)

Could you please guide me.

Share this post


Link to post
Share on other sites
4 hours ago, sachinda said:

hanging the COM Rx block right on the power rail

This means you put it on the rightmost position of the network with no conditions.

4 hours ago, sachinda said:

I tried  COM Rx separately having in the program but it did not work

Is that what you mean by this?  Posting screen shots is often very helpful for clarification.

Joe T.

Share this post


Link to post
Share on other sites
8 hours ago, Joe Tauser said:

This means you put it on the rightmost position of the network with no conditions.

Leftmost?

Share this post


Link to post
Share on other sites
1 hour ago, Flex727 said:

Leftmost?

OK, so I'm hand dyslexic. 😄

Which is why I use screenshots so often.  And I wish other people would, too.  The language barrier on the forum often causes an answer to take days while we try to figure out what each other is saying.

Joe T.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×