S7-SoftPLC:Configuring CP340/440 emulation in PLC43.INI
From IBHsoftec Wiki English
The basic settings of the CP340/440 emulation are conducted here. S7-SoftPLC expects a section named [CPx40_SerialPorts], in which the following keys are being used:
General part:
Key name | *Default value, Value range | Description |
---|---|---|
ReceiveFB_Number | *9, 1 .. 16383 | Number of receive block |
SendFB_Number | *10, 1 .. 16383 | Number of send block |
CPU_Stop | *0, 0 .. 2 | 0=continue, 1=pause, 2=close port |
NoOfPorts | *0, 0 .. 64 | Number of serial ports |
Port specific part:
The described parameters concern the specific port settings and are in given form: "P##Parametername", where "##" represents a two digit placeholder for the consecutively numbered portnumber and "Parametername" represents the Keyname
Key name | *Default value, Value range | Description |
---|---|---|
P##Interface | Name of serial port i.e. COM1 | |
P##LADDR | *0, 0 .. 4294967295 | Address of serial interface addressable from plc programm |
P##Baudrate | 110, 300, 600, 1200, 2400, 4800, *9600, 14400, 19200, 38400, 56000, 57600, 115200, 128000, 256000 | Signs per secound |
P##DataBits | 7, *8 | Databits per sign |
P##Parity | *EVENPARITY, ODDPARITY, SPACEPARITY, NOPARITY | Parity of sign |
P##StopBits | *1, 2 | Stopbits of sign |
P##FlowControl | *AUTO, FALSE, XON/XOFF, RTS/CTS | Flow control |
P##XON | *0x7F | XON sign (only when FlowControl=XON/XOFF) |
P##XOFF | *0x7F | XOFF sign (only when FlowControl=XON/XOFF) |
P##EndDetection | *ZVZ, ENDSIGN, ENDSIGN2, LENGTH | Telegram end detection |
P##CDT | *200, 1 .. 2147483647 | Character delay time (only when EndDetection=ZVZ) |
P##Timeout | *200, 1 .. 2147483647 | Timeout for missing telegram end |
P##TelegramLength | *1024, 1 .. 65535 | Telegram length (end detection when EndDetection=LENGTH) |
P##EndSign | *0x0D | End sign (only when EndDetection=ENDSIGN or ENDSIGN2) |
P##EndSign2 | *0x0A | End sign (only when EndDetection=ENDSIGN2) |
P##WriteProtect | 0, *1 | Write protection of ring buffer |
P##RingBufferCount | *8, 1 .. 16 | Number of buffered telegrams |
P##Intermission | *200, 0 .. 4294967295 | Send pause after sending last sign, for synchronising the communication partner |