riandanualdy

MrPLC Member
  • Content count

    57
  • Joined

  • Last visited

Posts posted by riandanualdy


  1. Hello, 

    I done connect HMI NB7W series to PLC CP1E and just using input and output (0,0 and 100,00) and i can send data from weighing scale to PLC CP1E with RS232 communication.

    My Question is, if i want to send data from HMI NB7W to PLC CP1E but must input the new data first using number input in HMI NB7W, can i send a new data with RS232 communication (like send data from weighing scale to PLC CP1E)? so i can save the new data to memory in CP1E.

    I use NB Designer Software and CX Programmer software.

    If possible, can you tell me how to do it? 

    Thank you
    Riandanu


  2. On 5/14/2019 at 8:17 PM, gtsuport said:

    Danu,

    You should be able to "save" the name from the NB to D memory, then send that to the SATO printer.

    Your second question would be no.  You could use a CP1H, with CP1W-EXT01 and a CJ1W-SCUxx module.

    CP1 family will only support up to two CP1W-CIFxx modules.

    gtsuport

    How to input the name with NB and save it in to D memory in PLC?

    I Have CP1E-N30DT and include 1 RS232 port, if i want use 2 port RS232(for SATO dan HMI NB) and 1 port for RS485(For my weighing scale), what module can i use?
     

    Thank you
    Danu


  3. Hello, my name is Danu. I have a project to print label to SATO printer with CP1E from my weighing scale.

    I can print weight data in label, and i think i dont have a problem with SATO and weighing scale.

    My question is, can CP1E input the name of user with keyboard or HMI (especially NB7W (because i just have NB7W)) and save it in memory in CP1E?

    because i want print a label with name of user, weight data, and name of goods.

    And my second question is, Does Omron PLC have a type that has 3 RS232 or 1 RS232 with 2 optional board for RS485 (CP1W-CIF11) and RS232 (CP1W-CIF01) ?

    Thank you.


  4. On 5/7/2019 at 10:48 AM, Wasan said:

    @riandanualdy There are "?" character because there are some unknown command response from weight indicator. You should check what is wrong about it. And you should try to remove <CR><LF> from send command (delete #0D0A) to send data again.

    CP1E_Weight_Error_01.thumb.jpg.423182f94

    i Try just send RW without CrLf and the output is just weight data without ?.

    And i think my problem its solved, Thank you for your help Mr. @Wasan and Mr @Michael Walsh


  5. 56 minutes ago, Wasan said:

    @riandanualdy You should connect weight transmitter with PC and check with serial communication software like hyperterminal to track how data are communicate. I think that A392.14 are On abnormally maybe there are something wrong with RXD data or loop back from other TXD data.

    The post before this post i use ladder diagram V3, but if i use V2 and move it to my ladder diagram, the output is like this (check my image), first PLC get ST,GS,+0009675kg but after that the data change to ?T,GS,+0009675kg. I Attached the image for memory of PLC and i connect it from my weighing scale to PC and the second image is the output from PC

    4329A TO CP1E TXD with command FIX.cxp

    Screenshot_12.png

    Screenshot_13.png


  6. On 5/4/2019 at 1:29 PM, Wasan said:

    @riandanualdy you should clear data before recieve because format for each command are response not same.

    LD@ are contact input with rising-edge check (Off to On) that will on for only 1 cycle time until input is off then on again.

    Sorry, if i try again your ladder diagram, first the weight data is move to D60 and after that clear the data in D60, but if i change the position between RXD and BSET, just clear the data, not to get weight data.

    rs485 CP1E - AD4329A - V3 -20190503.cxp

    1 person likes this

  7. 21 hours ago, Wasan said:

    @riandanualdy Please check that you CP1W-CIF11 dip switch no.5 is not on because it means disable echo-back function when it turns on. Then I adjust you software to clear data from D60 to D69 before send data.

    rs485 CP1E - AD4329A - V2 -20190503.cxp

    I try with your  ladder diagram and its working. And actually if i use your ladder diagram and change SW 5 in CP1W-CIF11 to ON/OFF its not change anything. 

    My question is, Does all of serial communication(RS232 and RS485) With PLC (receive and transmit data) always must clear data memory before receive the data?

    Can you explain to me what different between LD and @LD ?

     


  8. 3 minutes ago, Wasan said:

    @riandanualdy I think there are some data are echo-back at your CP1W-CIF11 maybe you should try to send other command that no data response (Zero, Tare etc.) and check that D register at RXD (I guess that you use D60) recieve data or not.

    It's true if i send MTCrLf command, D60 is have data MTCrLf too but always move to D61. but i think its normal because if you read the manual book, if i send command MTCrLf the scale will send MTCrLf too to PLC, but why if i use command RWCrLf, the feedback is just not the weighing data but RWCrLF+weighing data. should i reset the port like RXD before?

    Screenshot_5.png

    Screenshot_6.png


  9. On 4/30/2019 at 9:41 AM, Wasan said:

    @riandanualdy First you should set D10 and D11 before TXD. For the last parameter of TXD you set at 2 bytes that means you send only "MT" (1 words or 1 D = 2 bytes = 2 Chars) If you need to send with <CR><LF> you should adjust to [TXD D10 #0200 &4]. If it is not correct maybe you should swap data to #544D and #0A0D.

    I think i dont have a problem with command Zero and Tare, but if i use command RWCrLf to get weighing data the output is random not like stream mode or manual print mode, normally the output is ST,GS,+0000825 kg CrLf.

    What should i do if i want to get the normally data?

    Screenshot_1.png

    rs485 CP1E - AD4329A.cxp

    Screenshot_2.png

    Screenshot_3.png

    Screenshot_4.png


  10. 20 hours ago, Wasan said:

    @riandanualdy You should set A526.01 to On for reset Option Serial Port. Maybe you should use program like this.

     

    CP1E_RXD_01.thumb.jpg.33bcb616513461657e

     

    For more information please check at this manual at page 242.

     

    http://www.edata.omron.com.au/eData/PLCs/CP1/W480-E1-08.pdf

    @Wasan @Michael Walsh yeah i done try your ladder diagram, and its working.

    How about the TXD? if i use command mode and the example of command is MTCrLf or MZCrLf.

    i done try to create ladder diagram, but i think its not working at all, but i think PLC done send data because if i change 0.02 to On the led in CP1W-CIF11 is blinking.
    Thank you

     

     

    Screenshot_10.png

    Screenshot_11.png


  11. On 4/27/2019 at 0:12 AM, Wasan said:

    @riandanualdy Maybe you should restart communication port by set value to A526.01 after read data.

    its working i think, i try use stream mode (send data repeatly) the memory can save data from weighing scale but sometimes A392.12 is ON and cant go off again,

    And i read A392.12 description is ON when a communications error has occurred at the serial option port. The port must be restarted when this flag turns ON.

    What is port address for me to restarted when A392.12 is ON?

    Screenshot_10.png

    Screenshot_11.png


  12. 14 hours ago, Michael Walsh said:

    What is different is that the P_1s bit is a one-shot (differentiate UP).  It is only on for one scan.  Right click on the contact and choose differentiate up. 

    My thought is that using the P_1s bit will allow the code to clear out the buffer.  For some reason, A392.14 is staying on, so the RXD instruction is only executed one time.  There is clearly data in the buffer since A394 = 16, so the P_1s bit would empty out the buffer.  Perhaps your device is sending multiple versions of the same string?  See if there is a setting to have it only send one at a time.  You could also connect this up to a PC with an RS232 adapter to look at it with a Hyperterminal like progam to see what your device is sending.

    Mr. @Michael Walsh i think if i push print randomly with that ladder diagram, A392.12 is ON, A392.14 is OFF and must restart PLC again if want to send data (A392.14).

    And if i use Stream Mode (Send Data Continously), i think can't use this ladder diagram.

    any solution so i can compare the weight data (just number) like this picture and ladder diagram?

    Thank you

    4329A TO CP1E MOV DATA.cxp

    Screenshot_9.png


  13. 9 hours ago, Michael Walsh said:

    For testing purposes, change your ladder rung to this:

    RXDsample.jpg.275c9bdb5ba3406fd7a1051b48

    and let us know what happens.

    Or, put a bit in place of the P_1s contact that you are not using elsewhere and turn it on manually when A394 = 16.  Then check D10 (or D0 as I have done above).

    Hello Mr Michael, I done checking D0 and data is same with AD4329a, but maybe sometimes if i push manually repeatly, A392.12 is on, A392.14 is off and can't get data and i think cant send data again after a392.12 is on.

    but my question is what different with your ladder diagram and my ladder diagram before? can you explain to me?

    Screenshot_7.png

    Screenshot_8.png


  14. 1 hour ago, Wasan said:

    @riandanualdy I think you use stream mode If you have USB to RS-485 converter you should connect with weigh scale then press print button and check that data are out to hyperterminal (or similar software) or not. If not maybe you should use commnication command mode (F41 = 3).

    I use 4 cable,

    CP1W   4329A

    RDA      SDB

    RDB      SDA

    SDA      RDA

    SDB      RDB

    and i attach the screenshot of cx programmer

    but still i cant get the data from weighing scale if i push print (Manual Print Mode).

    Screenshot_3.png


  15. On 4/20/2019 at 3:16 PM, Wasan said:

    @riandanualdy Maybe you need to adjust DIP switch on CP1W-CIF11 in pin 2 and 3 to on for use RS-485 2 wire.

    https://www.support-omron.fr/telechargements/documentations/2017-10-06%20-%2015-19-10%20-%201425040277/CP1W-CIF11%20W471-E1-01.pdf

    Sure i done adjust DIP switch pin 1,2,3 ON and 4,5,6 OFF, but still cant get the data.

    Is that the setting of PLC Settings and ladder diagram is true? because im not sure about that.


  16. 12 minutes ago, Wasan said:

    This is example for writing Modbus registers for 2 register at start address 40001 for more information please check link below at page 245 - 253.

    https://industrial.omron.ca/en/media/CP1E_Software_UsersManual_en_201601_W480-E1-08_tcm824-108754.pdf

    This is short instructions

    1. Initial data when power on.

    CP1E_Modbus_01.thumb.jpg.c768c75f7b52dc0

    2. Config Modbus parameter.

    D1300 -> Slave Address
    D1301 -> Function Code
    D1302 -> Communication Data Bytes
    D1303 -> Start Address
    D1304 -> Number of registers written
    D1305 -> Number of Bytes to send data

    CP1E_Modbus_02.thumb.jpg.fd7c34e8c11afcc

    3. Config data to written on Modbus register use MOVD because data is in lower byte of D1305 and upper byte in D1306 and other too.

    CP1E_Modbus_03.thumb.jpg.ec968151dae469a

    4. Modbus communication trigger.

    CP1E_Modbus_04.thumb.jpg.3bb867e7186ef34

    CP1E_Easy_Modbus.cxp

    Finally i can create write multiple register, i just follow the pdf you give me.

    I want ask, how to read data (read input register and read holding register) real time or in data memory always display the real time data? 


  17. On 10/20/2018 at 10:01 AM, Wasan said:

    I have checked AD4402 manual it have not information about modbus code but you can check it by connect USB to RS-485 on your computer and use this software to test Write multiple registers (function code 16)

    http://www.baseblock.com/PRODUCTS/download/BBCOMTESTPRO.zip

    I done test with modbus master, and if i use function code (0x10), i can do write and read the register at the same time.

    how about the ladder diagram?


  18. Hallo my name is Danu, i have a CP1E wirh CP1W-CIF11 and connect to modbus RTU device, i have done with write single coil, write single register,  read single register and read multiple register. But i try to write multiple register,  the indicator of CP1W-CIF11 is off and if i check d memory its no data. I attached my cx programmer.
    Can you help me create write multiple register in cx programmer? 

    Thank you

    AD4402-modbus edit edit edit edit edit.cxp