Wasan

MrPLC Member
  • Content count

    393
  • Joined

  • Last visited

Community Reputation

71 Excellent

About Wasan

  • Rank
    Sparky
  • Birthday 07/17/88

Contact Methods

  • Website URL https://scadaskill.blogspot.com/

Profile Information

  • Gender Male
  • Location Bangkok
  • Country Thailand

Recent Profile Visitors

6413 profile views
  1. Connect FX3G-40M to proface HMI GP-4301TM

    You could check setting on Mitsubishi CPU Direct driver manual on Device/PLC help on GP Pro-EX or check at this link below. https://www.hmisource.com/otasuke/files/manual/soft/gpproex/hosoku/mitfxcpu.pdf
  2. Hi everyone. My customer tell us to check their MDS-A-CR-75 that I have find some manual for a while but not found it. Are there anyone have manual for this. I need wiring diagram to check them.
  3. @RichardK I have never use Modbus ASCII on M221 but I think if change protocol on communication setting it should be fine to use READ_VAR maybe wait for other to clarify with these.
  4. @NoamC Maybe you compare data from previous data if it is more than last value put it in register.
  5. @NoamC There are function call "MAX_ARR" may be you should use it.
  6. @RichardK Which device model that you need to connect with Modbus TCP?
  7. Citect Scada Modent Bit Read

    Hi @hmwright I have create test project for MODNET3 bit in word.I have found that bit order on wor device is seperate into 2 block. I will describe below. 1. Create project with I/O Device to use Modnet3 (If necessary assign device address). 2. Create Variable tag with word and bit in word (For Modnet3 address start from 0 and have bit 0 - 15 that means in you need to read device that start address are 400001 you should assign in citect as 400000). 3. Compile and run project when assign word value is 147 then bit 8, 11, 14, 15 are on. 4. That because in Modbus data is arrange data from bit 16 to bit 1 5. If you need to start with bit 1 you should config parameter [MODNET]RegisterBitReverse from 0 to 1. 6. Select Setup Editor to edit Citect parameter. 7. Add Section MODNET then edit parameter as shown below then click "Add" button. 8. Go to File -> Save to save parameter. 9. Then Reload parameter and close window screen. 10. When run project again for value 147 bit 0, 1, 4 and7 will on.
  8. How to move 8 bit only in data memory D ?

    @CangkeMan You should use SMOV or AND data with H0F like this Assume that data in D0 and destination are D10 -| M0 |------[SMOV D0 K2 K2 D10 K2] or use "AND" function -| M0 |------[WAND D0 H0F D10]
  9. Hi @RichardK I have create example program for READ_VAR function block attacth to this post I don't have real hardware then I'm not sure that it will work correctly. Then I will describe how program works 1. Create program on SoMachine or Machine Expert - Basic then assign communication parameter on PLC serial port to match with Soft Starter Parameter. 2. Config Modbus parameter to set PLC as Modbus Master. 3. In this program I have use system clock 100 ms %S5 to count uo conuter for each READ_VAR command for this project I use 4 device to read then I set preset to be 4 + 1 = 5 when counter reach preset it will reset automatically. 4. use compare block for %C0.V (Counter 0 Current Value) = 1 when counter reach 1 it will operate then put %READ_VAR function block after it at EXECUTE pin You need to assign %READ_VARX for each communication block. Example I start with %READ_VAR0 for communicate with device slave ID 1. Detail for configuration shown below Link: Which PLC port to connect with Modbus Device Id : Modbus Slave ID for SoftStarter TimeOut : How long to timeout after wait for resplonse ObjType : Function code that you use (use 0 For Modbus 0x03 for read multiple registers) FirstObj : First Register to be read (For this softstarter start with 0 for P000 then we need to read P003 that means we start with 3) Quantity : How many data to read (use 12 for P003 - P014) IndexData : First %MW to recieve data (For this block use %MW0 - %MW11 to recieve  5. Then create similar program for each device to read by add compare value to 1 for each command and change %READ_VAR0 to next %READ_VAR1..2..3 and config IndexData for each READ_VARX function block.  6. Then we will end at %READ_VAR3 for device 4. Now we can read Modbus data from 4 softstarters P003 - P014 as these No.1 -> %MW0 - %MW11 No.2 -> %MW20 - %MW31 No.3 -> %MW40 - %MW51 No.4 -> %MW60 - %MW71 MrPLC_ReadVar_SoftStarter_01.smbp
  10. @RichardK I have check on SoftStarter Manual it use Modbus RTU Protocol that can use READ_VAR function on M221 that easier than EXCH/MSG command. Could you tell us which 11 parameters to read and what Device ID for four softstarters? And send us program for EXCH/MSG because attach files are so blur to read.
  11. @RichardK Which softstarter brand and model do you use and how ti communicate with it (TCP, Modbus or anything)? Could you send your softstarter communication manual to us?
  12. Citect Scada Modent Bit Read

    @hmwright Could you change data type to DIGITAL?
  13. Hi @Phong Maybe you should use Grafana to display data from database then embeded them on Citect SCADA.
  14. Plc vs expansão

    Which model of expansion board do you use? It is Modbus or ASCII serial?
  15. PLC to PLC

    You should use "Socket Communication" to communicate with two Q03UDE PLC on manua below start from page 62 or check on Mitsubishi website maybe they have function block for use with this.    https://www.allied-automation.com/wp-content/uploads/2015/02/MITSUBISHI_QnUCPU-User%E2%80%99s-Manual-Communication-via-Built-in-Ethernet-Port.pdf