1

Topic: Connection of the fiscal logger

Hello. I try to understand connection of fiscal loggers to the program written on Access. Near at hand there is logger IKC-483LT. At attempt of creation of object for reversal to it there is a following error. Probably someone faced with similar and can prompt what to do, therefore as I in lockup. Here my code and an error screen.
Private Sub Start_Click ()
' we Create object of general driver KKM
Dim ECR As Object
Set ECR = CreateObject ("IKC483LT")
' we Occupy port
ECR.DeviceEnabled = True
Select Case ECR.ResultCode
Case-3
Call MsgBox ("the Port is occupied by other application or the given port  in the PC or  it is not included.", vbCritical + vbOKOnly)
Case 0
End Select
' we Check communication with .
Select Case ECR.GetCurrentMode
Case-1 ' There is no communication with .
Call MsgBox ("There is no communication with  or  it is not included!", vbCritical + vbOKOnly)
End Select
End Sub

2

Re: Connection of the fiscal logger

Tukzar;
- The driver  by this machine is not installed...
- The driver  by this machine is not adjusted...
- At the moment of coding check the test of the driver which occupied port is launched...
- Not the correct name of an input in dll CreateObject (" IKC483LT ")
- Probably in  is not present necessary for CreateObject
- Probably dll the driver  it is necessary to add in

3

Re: Connection of the fiscal logger

vmag;
What it is necessary to connect in  for creation of objects?

4

Re: Connection of the fiscal logger

The COM-library is necessary.
Judging by that it is on sale for money, it is not included in composition of the built in software.

5

Re: Connection of the fiscal logger

Alibek B.;
You gave the reference to the driver, it is a bit another.
I have a driver from the vendor to given model

6

Re: Connection of the fiscal logger

Access does not work directly with the driver.
It works with ActiveX-object which works with the driver.
And judging by a screenshot, the ActiveX-library is not registered and not installed.

7

Re: Connection of the fiscal logger

Tukzar wrote:

... I have a driver from the vendor to given model

, at  it is not necessary

8

Re: Connection of the fiscal logger

Alibek B.;
How it to install and register?

9

Re: Connection of the fiscal logger

To address to the vendor.

10

Re: Connection of the fiscal logger

Generally it is possible to work and without OCX. Through API. But here it is necessary to clean API
Example of connection API to the program

Public Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
' óñòàíîâêà ïàóçû 500 ìñ Sleep 500

Time at you is DLL that it is necessary to go most likely on this way.

11

Re: Connection of the fiscal logger

Hastened. API are not connected to the program. It DLL are connected. It is necessary to dig the documentation on delivered DLL.

Public Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
' setting of a pause 500 msec Sleep 500

Except connection/announcement most DLL happens it is necessary to declare/describe additional elements.
Example of functions for discovery and file saving. Use, by the way, same DLL

' API function called by ShowOpen method
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OpenFilename) As Long
' API function called by ShowSave method
Private Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As OpenFilename) As Long
' data buffer for the GetOpenFileName and GetSaveFileName functions
Private Type OpenFilename
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
iFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
Flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type

in essence are wrappers for DLL which urged to facilitate life.

12

Re: Connection of the fiscal logger

Alibek B. wrote:

Access does not work directly with the driver.
It works with ActiveX-object which works with the driver.
And judging by a screenshot, the ActiveX-library is not registered and not installed.

Still as works. At me the example of operation Access with COM port without OCX somewhere rolls. Only with usage API. But if with usage OCX all operation finds room in ten lines at usage API the code was allocated somewhere on two pages.

13

Re: Connection of the fiscal logger

Joss wrote:

Still as works.

If in the beginning to think, but only then to write, then bosh on the Internet will be less.
And here API?
The HARDWARE works with  through COM-interfaces.
And COM is not RS232, it Component Object Model.

14

Re: Connection of the fiscal logger

Alibek B. wrote:

it is passed...
If in the beginning to think, but only then to write, then bosh on the Internet will be less.
And here API?
The HARDWARE works with  through COM-interfaces.
And COM is not RS232, it Component Object Model.

>> If in the beginning to think but only then to write, then bosh on the Internet will be less.
The CATFISH port it just also is RS232.
The pioneer.

15

Re: Connection of the fiscal logger

One more writer, not the reader.
At the HARDWARE on the code it is clear that is used Component Object Model, instead of Communication Serial Port.

16

Re: Connection of the fiscal logger

Exposure from, one of set, article:
Interface RS-232 which is absolutely officially named "EIA/TIA-232-E", but more known as interface "COM-port"

17

Re: Connection of the fiscal logger

...

Dim ECR As Object
Set ECR = CreateObject ("IKC483LT")

Explanations, what is it? are necessary

18

Re: Connection of the fiscal logger

Alibek B. wrote:

Mda...

Dim ECR As Object
Set ECR = CreateObject ("IKC483LT")

Explanations, what is it?

Dear opponent are necessary. I simply wanted to tell that for writing of interaction with the remote terminal unit not mandatory to have OCX an element. It is enough to have corresponding DLL. Well and its description. Resulted a program slice where instead of OCX were used DLL and as an example told that wrote communication with port RS-232 (In descriptions of motherboards they name COM-ports) both with usage OCX and with usage API.
The HARDWARE writes that it has a driver for operation with the equipment. The driver is necessary if the special board is interposed into a connector  PCI or PCI-E. And if the device is connected through standard connectors COM, LPT or USB driver for such devices in system already stand and the HARDWARE should have a library for operation with the device (named it DLL)
And into the account of your example I can lay out the

Dim objFSO As Object
Set objFSO = CreateObject ("Scripting. FileSystemObject")

to you to explain, what is it?
vmag wrote that at the HARDWARE it is possible DLL it is not registered in system or it it is not correct to it addresses. That very much even it is possible. Well iron the bare cannot be on sale. It all the same that if missed the driver for  or . Bare iron is necessary for nobody.
Truth there are cases when such libraries  rigidly sew in the programs. For obtaining of additional money for purchase of a separate software.

19

Re: Connection of the fiscal logger

Joss wrote:

I simply wanted to tell that for writing of interaction with the remote terminal unit not mandatory to have OCX an element. It is enough to have corresponding DLL.

Generally yes.
But in a considered case from the resulted code clearly that the HARDWARE for operation the ActiveX-component or COM-library is necessary.
Therefore links on WinAPI or that many  have interface RS-232 with which it is possible to work directly, look strange and not in a subject.

Joss wrote:

the HARDWARE writes that it has a driver for operation with the equipment. The driver is necessary if the special board is interposed into a connector  PCI or PCI-E.

The driver also is necessary for the devices connected on USB.

Joss wrote:

Well iron the bare cannot be on sale. It all the same that if missed the driver for  or . Bare iron is necessary for nobody.

Iron also is not on sale bare, it has a real or virtual serial interface, by operation with which it is necessary to use the device protocol.
And besides normally there are high-level libraries and components with which help with the device to work easier.
But these libraries not is mandatory happen free.

20

Re: Connection of the fiscal logger

Alibek B. wrote:

it is passed...
Generally yes.
But in a considered case from the resulted code clearly that the HARDWARE for operation the ActiveX-component or COM-library is necessary.
Therefore links on WinAPI or that many  have interface RS-232 with which it is possible to work directly, look strange and not in a subject.
it is passed...
The driver also is necessary for the devices connected on USB.
it is passed...
Iron also is not on sale bare, it has a real or virtual serial interface, by operation with which it is necessary to use the device protocol.
And besides normally there are high-level libraries and components with which help with the device to work easier.
But these libraries not is mandatory happen free.

The layman.
You likely never worked from Access with devices
Already all explained to you that you are not right.

21

Re: Connection of the fiscal logger

To HARDWARE convergence vmag and 58 just worked with fiscal loggers. Try to ask them.

22

Re: Connection of the fiscal logger

All thanks.
Only came from operation. I will understand.

23

Re: Connection of the fiscal logger

Joss wrote:

To HARDWARE convergence vmag and 58 just worked with fiscal loggers. Try to ask them.

I more than anything cannot add for I work only with  and a dash,  from UA to me are not conducted;
It is clear that principles are approximately identical (a catfish he/she is a catfish object, instead of port), but it is necessary to search for examples
For this type of devices (at a dash and  examples go in a set at setting the driver test), it is possible still
To glance in the instruction of the programmer to the device, there too there can be examples...
https://unipro.com.ua/ru/---483lt--ikc- … c-2-combi/
http://dts.in.ua/index.php?page=shop.pr … p;Itemid=2
Normally easiest way -  handling for 1...

24

Re: Connection of the fiscal logger

And still... The code in the first post from  an example... There are doubts that  and something from UA this same...

25

Re: Connection of the fiscal logger

Here
http://www.ics-market.com.ua/ru/oborudo … polnitelno
In ICSFPDRIVERSETUP_VER.3.2.14.51.RAR there are working examples for 1 7 and 8
Also it is launched also source codes it is possible to look...
It?