MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

1 Neutral


  • Rank

Profile Information

  • Country Singapore
  1. 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.  
  2. CJ2M PLC power supply wiring

    Thanks a lot
  3. 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
  5. 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
  6. 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.    
  7. 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?    
  8. Add Delay to to the Analogue out

    Hi Chelton,  thanks a lot.
  9. 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.    
  10. 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)    
  11. Add Delay to to the Analogue out

    hi Chelton. Thanks a lot. Let me go thru and work it out.
  12. 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
  13. Add Delay to to the Analogue out

    hi Chelton, Mostly 1-5 seconds delay.   Do you have any sample prgm?  
  14. 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?  
  15. 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