MrPLC Member
  • Content count

  • Joined

  • Last visited

Everything posted by T J SHARON

  1. HI all,    Any suggestion or comments?  
  2. HI All,  I have an issue with my SCU32 communication.  Back ground Two SCU32s  (top and bottom side) connected via a 1100M datacable  using port1 ( 9600bps,  8-2-E, start code FF, end code FE, Tx save to d1000-d1200 , Rx save to d2000-d2200). PORT2 of bottom SCU32 is connected to a compass( 2 wire, 8-1-N, 19200 bps, serial gateway MODBUS ). Refer to photo Issue  Without compass, the receiving data at top is very stable and is didn't see any fluctuation. But if is compass is connected at bottom side port2, there is a fluctuation at the top side RX data(specifically d2000-d2005 ) .  I checked the data a bottom side TX (d1000-d1200) and it is stable. Only after sending the data and Receiving at Top side, then only the starting words fluctuate. I am not sure sure what is wrong, I am using logical ports for the DTXDU/DRXDU and compass.   Appreciate all your feedback and suggestions.  
  3. CJ2M PLC power supply wiring

    Thanks a lot
  4. CJ2M PLC power supply wiring

    HI all,  Is there anything issue or wrong in thing connection ( added noise filter & fuse. )?  

    Hi,  I am using same ADunit channel ( 2502) for  SV & PV in the PIDAT instruction. When the execution start the DIFU will save the current value as SV. I am suing AD081 and PLC read as UINT 0-4000.  My doubt is Do i need to scale the 0-4000 to 0-4095 for the SV & PV.?   PID_w_thrustercal.cxp
  6. PID I & D Unit

    Hi All,  I need some clarification on the PID instruction. The note states that if #9 is set for C+6 04-07, the I & D will be 0.1 to 819.1s. But I didn't understand this highlighted section. Does it mean that my I and D values will something between  (1x τ)~(8191xτ)s??   All help is much appreciated, Stay safe and healthy. T J Sharon
  7. grounding and fluctuation

    Hi All , Thanks for all the reply and help.  let me try as what u said. And thanks for sharing the video.    
  8. grounding and fluctuation

    HI  BOB,  "What is the analogue signal - 4-20ma? 0-10V? 4-20ma is much better for noise rejection - I will not use voltage analogues at all! Is the 24VDC supply negative grounded? That is always a no no as far as I am concerned - do not ground the negative at all but let it float - ground noise introduced. I expect the 24VDC supply is from a switch mode power supply. If so what brand? There is some really cheap junky stuff out there. Is the analogue cable only grounded at one end? It should be grounded at the source only.  "   Based on red coloured statement how can i do wiring ? Something as below pic?    
  9. Add Delay to to the Analogue out

    Hi Chelton,  thanks a lot.
  10. Add Delay to to the Analogue out

    Hi all,    I have an FB (ST) which will calculate the UINT values that need to send to DA outputs. Currently i was requested to add a delay between the calculated output & DA units. I am not sure how to do it? can I just use a TON? Any sample ST code?  
  11. Add Delay to to the Analogue out

    Hi ,    I already extended FB areas of H-memory. Is there any issue if I change my over all FB memory allocation to d10000 ? Mean while I will try the feasibility of using IN-OUT  method.    
  12. Add Delay to to the Analogue out

    HI,  Its tested and working well. I have 8 Analogue inputs and will be using 8FBs, which need 800 words for Buffer_Ring array. But i don't have much free words in H-memory for Buffer_Ring array.  Is there any way that i can assign  Dmemory for the array? ( Assign "AT" in the Fb variable session not possible as this FB is using simultaneously for different Analogue inputs)    
  13. Add Delay to to the Analogue out

    hi Chelton. Thanks a lot. Let me go thru and work it out.
  14. Add Delay to to the Analogue out

    thanks  It seems like a code for FB.   Could you please specify the input,output and internal variables and data type? I managed to identify some. EN (bool) ------>INPUT Run (Bool)------>INPUT Ring_Buffer_Initialize (bool) Ring_Buffer_Write_Index Ring_Buffer_Read_Index Ring_Buffer_Size Ring_Buffer_Read_Index RB-Loaded (bool)------>OUTPUT ONS_Trig (bool)------>OUTPUT Ring_Buffer[ ] ------>INTERNAL Analogue_In (UINT)------>INPUT  Analogue_Out(UINT) ------>OUTPUT Appreciate all your help Regards, T J sharon
  15. Add Delay to to the Analogue out

    hi Chelton, Mostly 1-5 seconds delay.   Do you have any sample prgm?  
  16. HI all,   I was trying to connect my compass with PLC via SCU32 RS485 (2 wire ) in protocol macros.[ Unit 1 port2]  My send command is   " 01 03 00 01 00 03 54 0B'  &  Expected reply is '01 03 06 XX XX YY YY ZZ ZZ ZZ ZZ" I created a new protocol using CX protocol and created  a send message & a receive message command  and added to sequence 000. (refer pics) Also added PMCR instrcution in cx programmer (refer pic). I can transmit the data , but i cant see any recieve data in D2000. I am not sure what had done wrong, or am i missing something?   Any help is much appreciated!! compass_macro2.psw Compass_TEST.cxp
  17. Unable to Recieve data from RS485 in protocol macros

    Hi all,  I managed to wrote the response data strings to data memory. What i did was ,I changed the send and receive message data bit from 'variable Hex' to 'variable' in the CX Protocol file.  Now its working. I tried different combinations of send and receive messages. All worked well . ( refer to the attached pics). compass_macro2.psw Compass_PMCR_WORKING.cxp
  18. Unable to Recieve data from RS485 in protocol macros

    hi Dan ,  "The Modbus Function Code 06 is normally a "write single 16 bit register", so you'd have to write each register value one at a time with separate 'transactions'.  "  How can i write it in each registers ? Should i write my protocol  as " <a>+[0306]+&(W(1),2)+&(W(1+2),2)+&(W(1+4),2)+W(1+6),2 ' , which is (01 03 06 XXXX YYYY ZZZZ CRC)
  19. Unable to Recieve data from RS485 in protocol macros

    Hi dan,    Thanks a lot. Let me try again!!
  20. Unable to Recieve data from RS485 in protocol macros

    hi Dan & team,   So can I use MODBUS-RTU for SCU and General purpose device communication ?  Does it work if i follow the following ways? connect device to SCU Change SCU setting (MODBUS, baudrate , parity, etc). Use CMND instruction  in ladder. Thanks in advance.
  21. hi all,  I am using SCU32 ( unit1, port2, 2wire and termination OFF)  to get the RS485 data strings from the compass with setting 19200bps, 8 databit, 1 stop bit &  No parity. I can send the TX string ( 01 03 00 01 00 03 54 0B)  from D100 memory and  write the Rx data to D2000 (01 03 06 xx xx yy yy zz zz CC CC). But the whenever the there is no RX data, The TXdata bounce back to RX. (refer to video, d100 is TX, D2000 is RX). I also tried wth SCU32 termination resistance ON. Same thing. I am not sure what is missing. Should i use different logical Port for TX and RX ?    EDITED: Just tried another scenarios  1) removed the connector and tried , D2000 - was written the TX values  2) Disable the RX  changing  LD from P_On to P_Off. D2000 - was written to #0000 0000 0000 0000  I am not sure what is  happening., Open connection also TX data bounce back to RX   Appreciate all help Thanks a lot  video1.mp4
  22. OMRON CJ2M-SCU32- RS485 Connection to gyro compass

    Just noticed that 'No protocol; doesn't work with 2 wire connection. So i will try to use cx protocol
  23. OMRON CJ2M-AD08V1 - AD data fluctuation

    Hi Dan,  Thanks for the reply. I will try as u said.